lavc/mediacodecdec: set AV_CODEC_CAP_AVOID_PROBING capability

This commit is contained in:
Matthieu Bouron 2017-04-04 09:12:42 +02:00
parent 6ffaf90b32
commit 3fce174d4f

View File

@ -552,7 +552,7 @@ AVCodec ff_h264_mediacodec_decoder = {
.decode = mediacodec_decode_frame, .decode = mediacodec_decode_frame,
.flush = mediacodec_decode_flush, .flush = mediacodec_decode_flush,
.close = mediacodec_decode_close, .close = mediacodec_decode_close,
.capabilities = AV_CODEC_CAP_DELAY, .capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_AVOID_PROBING,
.caps_internal = FF_CODEC_CAP_SETS_PKT_DTS, .caps_internal = FF_CODEC_CAP_SETS_PKT_DTS,
}; };
#endif #endif
@ -568,7 +568,7 @@ AVCodec ff_hevc_mediacodec_decoder = {
.decode = mediacodec_decode_frame, .decode = mediacodec_decode_frame,
.flush = mediacodec_decode_flush, .flush = mediacodec_decode_flush,
.close = mediacodec_decode_close, .close = mediacodec_decode_close,
.capabilities = AV_CODEC_CAP_DELAY, .capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_AVOID_PROBING,
.caps_internal = FF_CODEC_CAP_SETS_PKT_DTS, .caps_internal = FF_CODEC_CAP_SETS_PKT_DTS,
}; };
#endif #endif
@ -584,7 +584,7 @@ AVCodec ff_mpeg4_mediacodec_decoder = {
.decode = mediacodec_decode_frame, .decode = mediacodec_decode_frame,
.flush = mediacodec_decode_flush, .flush = mediacodec_decode_flush,
.close = mediacodec_decode_close, .close = mediacodec_decode_close,
.capabilities = AV_CODEC_CAP_DELAY, .capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_AVOID_PROBING,
.caps_internal = FF_CODEC_CAP_SETS_PKT_DTS, .caps_internal = FF_CODEC_CAP_SETS_PKT_DTS,
}; };
#endif #endif
@ -600,7 +600,7 @@ AVCodec ff_vp8_mediacodec_decoder = {
.decode = mediacodec_decode_frame, .decode = mediacodec_decode_frame,
.flush = mediacodec_decode_flush, .flush = mediacodec_decode_flush,
.close = mediacodec_decode_close, .close = mediacodec_decode_close,
.capabilities = AV_CODEC_CAP_DELAY, .capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_AVOID_PROBING,
.caps_internal = FF_CODEC_CAP_SETS_PKT_DTS, .caps_internal = FF_CODEC_CAP_SETS_PKT_DTS,
}; };
#endif #endif
@ -616,7 +616,7 @@ AVCodec ff_vp9_mediacodec_decoder = {
.decode = mediacodec_decode_frame, .decode = mediacodec_decode_frame,
.flush = mediacodec_decode_flush, .flush = mediacodec_decode_flush,
.close = mediacodec_decode_close, .close = mediacodec_decode_close,
.capabilities = AV_CODEC_CAP_DELAY, .capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_AVOID_PROBING,
.caps_internal = FF_CODEC_CAP_SETS_PKT_DTS, .caps_internal = FF_CODEC_CAP_SETS_PKT_DTS,
}; };
#endif #endif