[FFmpeg-devel] [PATCH] another stab at improved dv probe

Maksym Veremeyenko verem
Sun Sep 27 12:12:22 CEST 2009


Reimar D?ffinger ???????(??):
> On Sat, Sep 26, 2009 at 06:34:06PM +0300, Maksym Veremeyenko wrote:
>> Reimar D?ffinger ???????(??):
>>> Hello,
>>> another attempt at dv probe. It is still on the simple side, checking
>>> that the distance between the section header difs is exactly 12000 bytes
>>> or also checking the video header difs etc. is possible, but currently I
>>> am still going for "as stupid as I can get away with".
>> [...]
>> Why do not check for DIF sequence integrity instead of some _magic bytes_?
> 
> Uh, those "magic bytes" are the DIF header, so what you propose would include
[...]
condition
[...]
+        if ((state & 0xff07ff7f) == 0x1f07003f)
[...]
seems correct for SMPTE-314M-1999, except i am not sure about "Arbitrary 
bit" set to 1 (at least i found is doc says Reserved bit set to 1). 
Further question is about SMPTE-370M-2006 to check if *Res*s are not 
used for others purpose...


-- 
________________________________________
Maksym Veremeyenko




More information about the ffmpeg-devel mailing list