[FFmpeg-devel] [PATCH]Autodetect dnxhd sample that can be decoded
Carl Eugen Hoyos
cehoyos at ag.or.at
Fri Oct 12 23:46:26 CEST 2012
Hi!
Attached patch fixes ticket #1807, the relevant decoding table
ff_dnxhd_cid_table[] contains values from 1235-1253.
Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/dnxhddec.c b/libavformat/dnxhddec.c
index e5c4381..7b55400 100644
--- a/libavformat/dnxhddec.c
+++ b/libavformat/dnxhddec.c
@@ -37,7 +37,7 @@ static int dnxhd_probe(AVProbeData *p)
if (!w || !h)
return 0;
compression_id = AV_RB32(p->buf + 0x28);
- if (compression_id < 1237 || compression_id > 1253)
+ if (compression_id < 1235 || compression_id > 1253)
return 0;
return AVPROBE_SCORE_MAX;
}
More information about the ffmpeg-devel
mailing list