Revision 95dca03f

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;
libavcodec/mpegvideo.h
796 796
void ff_mpeg1_encode_init(MpegEncContext *s);
797 797
void ff_mpeg1_encode_slice_header(MpegEncContext *s);
798 798
void ff_mpeg1_clean_buffers(MpegEncContext *s);
799
int mpeg1_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size);
799
int ff_mpeg1_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size);
800 800

  
801 801
#include "rl.h"
802 802

  
libavcodec/mpegvideo_parser.c
138 138
    if(s->flags & PARSER_FLAG_COMPLETE_FRAMES){
139 139
        next= buf_size;
140 140
    }else{
141
        next= mpeg1_find_frame_end(pc, buf, buf_size);
141
        next= ff_mpeg1_find_frame_end(pc, buf, buf_size);
142 142

  
143 143
        if (ff_combine_frame(pc, next, (uint8_t **)&buf, &buf_size) < 0) {
144 144
            *poutbuf = NULL;

Also available in: Unified diff