comparison mpeg12.c @ 4916:13ef168891b0 libavcodec

add a ff_ prefix to the now exported mpeg1_find_frame_end() function
author aurel
date Sat, 05 May 2007 18:25:02 +0000
parents c22e10113015
children 0d1cc37d9430
comparison
equal deleted inserted replaced
4915:c22e10113015 4916:13ef168891b0
3030 } 3030 }
3031 /** 3031 /**
3032 * finds the end of the current frame in the bitstream. 3032 * finds the end of the current frame in the bitstream.
3033 * @return the position of the first byte of the next frame, or -1 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 int i; 3037 int i;
3038 uint32_t state= pc->state; 3038 uint32_t state= pc->state;
3039 3039
3040 i=0; 3040 i=0;
3092 } 3092 }
3093 return 0; 3093 return 0;
3094 } 3094 }
3095 3095
3096 if(s2->flags&CODEC_FLAG_TRUNCATED){ 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 if( ff_combine_frame(&s2->parse_context, next, &buf, &buf_size) < 0 ) 3099 if( ff_combine_frame(&s2->parse_context, next, &buf, &buf_size) < 0 )
3100 return buf_size; 3100 return buf_size;
3101 } 3101 }
3102 3102