[FFmpeg-devel] [PATCH 5/5] wtvdec: warn about truncated files
Peter Ross
pross at xvid.org
Sat Jan 5 12:35:22 CET 2013
On Sun, Dec 30, 2012 at 12:44:07PM +0000, Paul B Mahol wrote:
> On 12/30/12, Peter Ross <pross at xvid.org> wrote:
> > ---
> > libavformat/wtvdec.c | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/libavformat/wtvdec.c b/libavformat/wtvdec.c
> > index 88daa09..3121269 100644
> > --- a/libavformat/wtvdec.c
> > +++ b/libavformat/wtvdec.c
> > @@ -200,6 +200,9 @@ static AVIOContext * wtvfile_open_sector(int
> > first_sector, uint64_t length, int
> > return NULL;
> > }
> >
> > + if (wf->sectors[wf->nb_sectors - 1] << WTV_SECTOR_BITS >
> > avio_tell(s->pb))
>
> wf->nb_sectors cant be 0?
Yep. The nb_sectors==0 scenario is handled immediately prior to
this statement.
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130105/fb5ca24f/attachment.asc>
More information about the ffmpeg-devel
mailing list