mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
DV: detect another case of broken DV files.
See trac issue #217. Only the dsf field seems to be used to distinguish between PAL and NTSC. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
parent
feda266db5
commit
31ff2cb266
@ -311,6 +311,10 @@ const DVprofile* avpriv_dv_frame_profile2(AVCodecContext* codec, const DVprofile
|
|||||||
if (sys && buf_size == sys->frame_size)
|
if (sys && buf_size == sys->frame_size)
|
||||||
return sys;
|
return sys;
|
||||||
|
|
||||||
|
/* hack for trac issue #217, dv files created with QuickTime 3 */
|
||||||
|
if ((frame[3] & 0x7f) == 0x3f && frame[80 * 5 + 48 + 3] == 0xff)
|
||||||
|
return &dv_profiles[dsf];
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user