Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e19a80de authored by Ronghua Wu's avatar Ronghua Wu Committed by Lajos Molnar
Browse files

MediaCodecList: fix findEncoderForFormat.

Bug: 17460057
Bug: 17637188
Change-Id: I618ff1a4dbbecf64786207ccb5208b0a67d80ddd
parent 2bac6129
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -204,7 +204,7 @@ final public class MediaCodecList {
     *         requests, or {@code null} if no such codec has been found.
     */
    public final String findEncoderForFormat(MediaFormat format) {
        return findCodecForFormat(false /* encoder */, format);
        return findCodecForFormat(true /* encoder */, format);
    }

    private String findCodecForFormat(boolean encoder, MediaFormat format) {