[FFmpeg-devel] Fix for avformat DHAV parsing issue.

Idan Freiberg speidy at gmail.com
Wed Jan 13 14:25:40 EET 2021


Hello FFmpeg developers,

Iv'e noticed some DAV files containing a 0xff's padding in between DHAV
chunks. This is possible when the Dahua DVR device generates a DAV file
which is concatenated from 2 different DAV files kept on the device hard
drive.

Here <https://www98.zippyshare.com/v/SjZCQwuv/file.html> is a 30 seconds
sample DAV file with such concatenation. The current code (master) fails to
parse frame at 11:00:12 (clock on frame) as it incorrectly skips valid DHAV
chunks in the file after detecting the padding.

Proposing a possible patch for this issue (git formatted patch is attached).
Will like to hear your thoughts and insights.

Thank you

-- 
Idan Freiberg
Mobile: +972-52-2925213
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avformat-dhav-Fix-incorrect-non-DHAV-chunk-skipping-.patch
Type: text/x-patch
Size: 1739 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210113/e3d3928e/attachment.bin>


More information about the ffmpeg-devel mailing list