• Charles Liu's avatar
    avformat/mov: fix hang while seek on a kind of fragmented mp4 · aa25198f
    Charles Liu authored
    Binary searching would hang if the fragment items do NOT have timestamp for the
    specified stream.
    
    For example, a fmp4 consists of separated 'moof' boxes for each track, and
    separated 'sidx' for each segment, but no 'mfra' box.  Then every fragment item
    only have the timestamp for one of its tracks.
    
    Example:
    ffmpeg -f lavfi -i testsrc -f lavfi -i sine -movflags dash+frag_keyframe+skip_trailer+separate_moof -t 1 out.mp4
    ffmpeg -ss 0.5 -i out.mp4 -f null none
    
    Also fixes the hang in ticket #7572, but not the reason for having
    AV_NOPTS_VALUE timestamps there.
    Signed-off-by: 's avatarCharles Liu <liuchh83@gmail.com>
    Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
    aa25198f
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...