mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
Merge branch 'master' of https://gitee.com/xia-chu/ZLMediaKit into dev
This commit is contained in:
commit
dbf2cd013c
@ -96,7 +96,7 @@ int main(int argc, char *argv[]) {
|
|||||||
if(!merger){
|
if(!merger){
|
||||||
merger.set<FrameMerger>(FrameMerger::h264_prefix);
|
merger.set<FrameMerger>(FrameMerger::h264_prefix);
|
||||||
}
|
}
|
||||||
merger.get<FrameMerger>().inputFrame(frame,[&](uint32_t dts,uint32_t pts,const Buffer::Ptr &buffer){
|
merger.get<FrameMerger>().inputFrame(frame,[&](uint32_t dts,uint32_t pts,const Buffer::Ptr &buffer, bool have_idr){
|
||||||
AVFrame *pFrame = nullptr;
|
AVFrame *pFrame = nullptr;
|
||||||
bool flag = decoder.get<FFMpegDecoder>().inputVideo((unsigned char *) buffer->data(), buffer->size(), dts, &pFrame);
|
bool flag = decoder.get<FFMpegDecoder>().inputVideo((unsigned char *) buffer->data(), buffer->size(), dts, &pFrame);
|
||||||
if (flag) {
|
if (flag) {
|
||||||
|
Loading…
Reference in New Issue
Block a user