mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-10-31 00:37:39 +08:00
Merge branch 'master' of https://gitee.com/xia-chu/ZLMediaKit
This commit is contained in:
commit
839420814e
@ -96,7 +96,7 @@ int main(int argc, char *argv[]) {
|
||||
if(!merger){
|
||||
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;
|
||||
bool flag = decoder.get<FFMpegDecoder>().inputVideo((unsigned char *) buffer->data(), buffer->size(), dts, &pFrame);
|
||||
if (flag) {
|
||||
|
Loading…
Reference in New Issue
Block a user