Fixes issue1044.
This may cause regressions with broken streams, if you find any, please report!
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18741
9553f0bf-9b14-0410-a0b8-
cfaf0461ba5b
if(s->frame_size > 0 && buf_ptr - buf == s->inbuf_ptr - s->inbuf
&& buf_size + buf_ptr - buf >= s->frame_size){
- if(s->header_count > 0){
*poutbuf = buf;
*poutbuf_size = s->frame_size;
- }
buf_ptr = buf + s->frame_size;
s->inbuf_ptr = s->inbuf;
s->frame_size = 0;
// next_data:
if (s->frame_size > 0 &&
(s->inbuf_ptr - s->inbuf) >= s->frame_size) {
- if(s->header_count > 0){
*poutbuf = s->inbuf;
*poutbuf_size = s->inbuf_ptr - s->inbuf;
- }
s->inbuf_ptr = s->inbuf;
s->frame_size = 0;
break;