[FFmpeg-devel] [PATCH] libavformat/mov.c : Fix issue in mov demuxer which trying to request seek with invalid seek offset ( 9223372036854775799 )

Malviya, Janpriya Janpriya_Malviya at bose.com
Mon Apr 11 17:28:48 EEST 2022


Hello FFmpeg Dev team,

While integrating FFmpeg for M4A , MP4 stream & facing issue that mov demuxer trying to request seek for invalid seek offset.

Issue details:-

  *   Modified doc/examples/demuxing.c example to support Custom IO call-back because we have our

own mechanism to read data from source

  *   In custom IO seek call back , we do not support “whence” values AVSEEK_SIZE & SEEK_END , used to find stream size.
  *   In Screen shot below , where we are observing seek with invalid seek offset and the seek requested after End of stream is detected
  *   Seek offset value 9223372036854775799 always the same ( I think INT64_MAX – 8 ,  8 is length Atom type & size field )
  *   If we allow to return proper stream size in seek callback then this problem is not observed.
[cid:image003.png at 01D84DDE.8B612E70]

Fix :
In attached patch to verify EOS condition before going to parse  atom data.

we are using FFmpeg tag n4.3.1 . Please take a look & provide your feedback . All regeneration test with https://samples.ffmpeg.org/ samples get passed on this patch.

Regards
Janpriya.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 208A8FD9FB85445CA4F048EC78B5834A.png
Type: image/png
Size: 234068 bytes
Desc: 208A8FD9FB85445CA4F048EC78B5834A.png
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20220411/ca331f88/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Avoid-seek-request-with-invalid-seek-offset-92233720.patch
Type: application/octet-stream
Size: 952 bytes
Desc: 0001-Avoid-seek-request-with-invalid-seek-offset-92233720.patch
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20220411/ca331f88/attachment.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: reproduce_Issue.c.c
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20220411/ca331f88/attachment.c>


More information about the ffmpeg-devel mailing list