MasayukiSuda / GPUVideo-android

This library apply video filter on generate an Mp4 and on ExoPlayer video and Video Recording with Camera2.
MIT License
658 stars 179 forks source link

fixed video playing on samsung devices #28

Closed e-hedgehog closed 5 years ago

e-hedgehog commented 5 years ago

This change fixes problem with playing video on some cheap or old devices, such as Samsung S4, J6, etc.

I tested on S4, and when I tried to play the video, I got a codec exception. Then I found that this problem occurs due to multiple instances of the same decoder. So I added this method, which tries to pick up another decoder when an exception occurs.