Mercurial > libavcodec.hg
comparison mpeg12.c @ 5814:14a9ceb162d2 libavcodec
Prevent infinite loop when buffer holds SEQ_END_CODE only. Fix for r9870
Patch by Stefan Lucke <stefan <at> lucke.in-berlin.de>
Subject: API breakage by r9870
Date: 2007-10-05 11:06:47 GMT
http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/57467
author | ramiro |
---|---|
date | Sat, 13 Oct 2007 01:34:00 +0000 |
parents | ebe106e3339e |
children | c8b9b73b979f |
comparison
equal
deleted
inserted
replaced
5813:bc467895b8c9 | 5814:14a9ceb162d2 |
---|---|
2237 *picture= *(AVFrame*)s2->next_picture_ptr; | 2237 *picture= *(AVFrame*)s2->next_picture_ptr; |
2238 s2->next_picture_ptr= NULL; | 2238 s2->next_picture_ptr= NULL; |
2239 | 2239 |
2240 *data_size = sizeof(AVFrame); | 2240 *data_size = sizeof(AVFrame); |
2241 } | 2241 } |
2242 return 0; | 2242 return buf_size; |
2243 } | 2243 } |
2244 | 2244 |
2245 if(s2->flags&CODEC_FLAG_TRUNCATED){ | 2245 if(s2->flags&CODEC_FLAG_TRUNCATED){ |
2246 int next= ff_mpeg1_find_frame_end(&s2->parse_context, buf, buf_size); | 2246 int next= ff_mpeg1_find_frame_end(&s2->parse_context, buf, buf_size); |
2247 | 2247 |