summaryrefslogtreecommitdiffstats
path: root/libavcodec/dvdata.c
diff options
context:
space:
mode:
authorNiobos <niobos@dest-unreach.be>2010-09-30 12:26:42 +0000
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2010-09-30 12:26:42 +0000
commite2f0214a0bf42558b565f7706e916f569fce23b8 (patch)
treef1c2ae7d316d92b5244c98810eaa117546d3f389 /libavcodec/dvdata.c
parentf3f5eb6e70f46fb2f0c06efed198b31a72ee1f29 (diff)
downloadffmpeg-streaming-e2f0214a0bf42558b565f7706e916f569fce23b8.zip
ffmpeg-streaming-e2f0214a0bf42558b565f7706e916f569fce23b8.tar.gz
Fix a yuv420p sample that was incorrectly detected as yuv411p
(576i50 25Mbps 4:1:1 special case was wrong). Fixes issue2211 Patch by Niobos, niobos dest-unreach be Originally committed as revision 25269 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dvdata.c')
-rw-r--r--libavcodec/dvdata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dvdata.c b/libavcodec/dvdata.c
index e7c377a..05993d8 100644
--- a/libavcodec/dvdata.c
+++ b/libavcodec/dvdata.c
@@ -255,7 +255,7 @@ const DVprofile* ff_dv_frame_profile(const DVprofile *sys,
int stype = frame[80*5 + 48 + 3] & 0x1f;
/* 576i50 25Mbps 4:1:1 is a special case */
- if (dsf == 1 && stype == 0 && frame[5] & 0x07) {
+ if (dsf == 1 && stype == 0 && frame[4] & 0x07 /* the APT field */) {
return &dv_profiles[2];
}
OpenPOWER on IntegriCloud