bilibili / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.
GNU General Public License v2.0
32.42k stars 8.11k forks source link

mpeg4 seek后解码失败没有画面 #5531

Open sanerjion opened 1 year ago

sanerjion commented 1 year ago

只有在特定的芯片上面会出现mpeg seek会dequeueOutputBuffer返回-1,正常播放是没问题的,喂数据和时间戳都没问题。

sanerjion commented 1 year ago

如果需要测试资源,我可以提供。

sanerjion commented 1 year ago

已经解决了,真是奇怪的BUG

ck227 commented 1 year ago

问下具体的bug场景和是什么解决的呢? @sanerjion se

sanerjion commented 1 year ago

就是在部分硬件上面播放mpeg,seek后,MediaCodec解码就返回-1了。

ck227 commented 1 year ago

问下,这个有啥解决方案吗? @sanerjion

xuantiandou commented 9 months ago

在mtk上面可能是会有,可以在seek前flush 一下

sanerjion commented 1 month ago

是mpeg4有问题,修改csd-0头