Revision 95dca03f libavcodec/mpeg12.c

View differences:

libavcodec/mpeg12.c
3032 3032
 * finds the end of the current frame in the bitstream.
3033 3033
 * @return the position of the first byte of the next frame, or -1
3034 3034
 */
3035
int mpeg1_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size)
3035
int ff_mpeg1_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size)
3036 3036
{
3037 3037
    int i;
3038 3038
    uint32_t state= pc->state;
......
3094 3094
    }
3095 3095

  
3096 3096
    if(s2->flags&CODEC_FLAG_TRUNCATED){
3097
        int next= mpeg1_find_frame_end(&s2->parse_context, buf, buf_size);
3097
        int next= ff_mpeg1_find_frame_end(&s2->parse_context, buf, buf_size);
3098 3098

  
3099 3099
        if( ff_combine_frame(&s2->parse_context, next, &buf, &buf_size) < 0 )
3100 3100
            return buf_size;

Also available in: Unified diff