wang-bin / mdk-sdk

multimedia development kit. download:
https://sourceforge.net/projects/mdk-sdk/files/
291 stars 33 forks source link

播放图片文件会触发多次onframe #254

Closed feiyangqingyun closed 1 week ago

feiyangqingyun commented 1 week ago

发现打开的是图片文件,player->onFrame回调函数中会打印多次,按道理就一帧,打印一次就行。

wang-bin commented 1 week ago

结束了会有一帧frame.isValid() == false && frame.timestamp() == TimestampEOS

feiyangqingyun commented 1 week ago

确实,要这样过滤下 if (frame.isValid() && frame.timestamp() != mdk::TimestampEOS) {