mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-12-04 09:01:30 +08:00
34 lines
915 B
C++
34 lines
915 B
C++
/*
|
|
* Copyright (c) 2016 The ZLMediaKit project authors. All Rights Reserved.
|
|
*
|
|
* This file is part of ZLMediaKit(https://github.com/xiongziliang/ZLMediaKit).
|
|
*
|
|
* Use of this source code is governed by MIT license that can be found in the
|
|
* LICENSE file in the root of the source tree. All contributing project authors
|
|
* may be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef ZLMEDIAKIT_PSDECODER_H
|
|
#define ZLMEDIAKIT_PSDECODER_H
|
|
|
|
#if defined(ENABLE_RTPPROXY)
|
|
#include <stdint.h>
|
|
#include "Decoder.h"
|
|
namespace mediakit{
|
|
|
|
//ps解析器
|
|
class PSDecoder : public Decoder {
|
|
public:
|
|
PSDecoder();
|
|
~PSDecoder();
|
|
int input(const uint8_t* data, int bytes) override;
|
|
void setOnDecode(const onDecode &decode) override;
|
|
private:
|
|
void *_ps_demuxer = nullptr;
|
|
onDecode _on_decode;
|
|
};
|
|
|
|
}//namespace mediakit
|
|
#endif//defined(ENABLE_RTPPROXY)
|
|
#endif //ZLMEDIAKIT_PSDECODER_H
|