[FFmpeg-trac] #3531(undetermined:closed): ffmpeg hangs converting a possibly broken avi file
FFmpeg
trac at avcodec.org
Tue Apr 22 19:52:23 CEST 2014
#3531: ffmpeg hangs converting a possibly broken avi file
-------------------------------------+-------------------------------------
Reporter: hxuanyu | Owner:
Type: defect | Status: closed
Priority: important | Component:
Version: git-master | undetermined
Keywords: avi | Resolution: fixed
deadlock regression | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by DonMoir):
Hangs up when trying to build index for me.
{{{
static int avi_read_header(AVFormatContext *s)
{
...
case MKTAG('i', 'n', 'd', 'x'):
i = avio_tell(pb);
if (pb->seekable && !(s->flags & AVFMT_FLAG_IGNIDX) &&
avi->use_odml &&
read_braindead_odml_indx(s, 0) < 0 &&
(s->error_recognition & AV_EF_EXPLODE))
goto fail;
avio_seek(pb, i + size, SEEK_SET);
break;
...
}
}}}
This allows it to at least play. Seeking not so good :)
{{{
case MKTAG('i', 'n', 'd', 'x'):
i = avio_tell(pb);
/*
if (pb->seekable && !(s->flags & AVFMT_FLAG_IGNIDX) &&
avi->use_odml &&
read_braindead_odml_indx(s, 0) < 0 &&
(s->error_recognition & AV_EF_EXPLODE))
goto fail;
*/
avio_seek(pb, i + size, SEEK_SET);
break;
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3531#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list