]> git.sesse.net Git - ffmpeg/commit
avcodec/mediacodecdec: add workaround for buggy amlogic mpeg2 decoder
authorAman Gupta <aman@tmm1.net>
Thu, 26 Apr 2018 18:51:15 +0000 (11:51 -0700)
committerAman Gupta <aman@tmm1.net>
Fri, 4 May 2018 18:53:44 +0000 (11:53 -0700)
commit9b563f6584b5ba2292975f0917268ac7b37497eb
tree540e4c817e3c8ee93dc79461a2c6b11a7963e667
parenta75bb5496ac6e7e194f1c6fd3b87f02a52e74adb
avcodec/mediacodecdec: add workaround for buggy amlogic mpeg2 decoder

I tested the previous mediacodec changes on seven different Android
TV devices, with both mpeg2 and h264 content. All except one worked
as expected. The exception was the MiBox3 running Android 6.0.1,
where playback would freeze on a frame every few seconds. I tested
two other AMLogic devices with newer Android versions that did not
show the same problem. H264 decoding on the MiBox3 was also not affected,
so this workaround applies only to OMX.amlogic.mpeg2.decoder.awesome
on Android API22.

There is a rumor that Xiaomi is planning to release Android Oreo for
the MiBox3, so I will revisit in a few months to confirm whether this
is specific to os/driver version or the chipset used in that device.

Signed-off-by: Aman Gupta <aman@tmm1.net>
Signed-off-by: Matthieu Bouron <matthieu.bouron@gmail.com>
libavcodec/mediacodecdec.c