mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-11-06 05:17:42 +00:00
avcodec/libmpeghdec: don't use extradata for streams with in-band config configuration
The decoder seems to accept it but then will not output any frame at all. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
1 parent
e9dc8fd4d6
commit
e4fa18c220
1 file changed
+2
-1
@@ -114,7 +114,8 @@ static av_cold int mpegh3dadec_init(AVCodecContext *avctx)
|
||||
return AVERROR_EXTERNAL;
|
||||
}
|
||||
|
||||
if (avctx->extradata_size) {
|
||||
if (avctx->codec_tag != MKTAG('m', 'h', 'm', '1') &&
|
||||
avctx->codec_tag != MKTAG('m', 'h', 'm', '2') && avctx->extradata_size) {
|
||||
if (mpeghdecoder_setMhaConfig(s->decoder, avctx->extradata,
|
||||
avctx->extradata_size)) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Unable to set MHA configuration\n");
|
||||
|
||||
Reference in new issue
Block a user