Browse Source

flush remaining data from parser at EOF

Originally committed as revision 3748 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 21 years ago
parent
commit
f48c0551ca
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      libavcodec/parser.c

+ 6
- 1
libavcodec/parser.c View File

@@ -187,7 +187,12 @@ int ff_combine_frame(ParseContext *pc, int next, uint8_t **buf, int *buf_size)
for(; pc->overread>0; pc->overread--){
pc->buffer[pc->index++]= pc->buffer[pc->overread_index++];
}

/* flush remaining if EOF */
if(!*buf_size && next == END_NOT_FOUND){
next= 0;
}

pc->last_index= pc->index;

/* copy into buffer end return */


Loading…
Cancel
Save