Commit 3fce174d authored by Matthieu Bouron's avatar Matthieu Bouron

lavc/mediacodecdec: set AV_CODEC_CAP_AVOID_PROBING capability

parent 6ffaf90b
...@@ -552,7 +552,7 @@ AVCodec ff_h264_mediacodec_decoder = { ...@@ -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 = { ...@@ -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 = { ...@@ -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 = { ...@@ -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 = { ...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment