@ -111,7 +111,7 @@ static int find_frame_rate_index(MpegEncContext *s){
int64_t d ;
int64_t d ;
for ( i = 1 ; i < 14 ; i + + ) {
for ( i = 1 ; i < 14 ; i + + ) {
int64_t n0 = 1001LL / avpriv _frame_rate_tab[ i ] . den * avpriv _frame_rate_tab[ i ] . num * s - > avctx - > time_base . num ;
int64_t n0 = 1001LL / ff_mpeg12 _frame_rate_tab [ i ] . den * ff_mpeg12 _frame_rate_tab [ i ] . num * s - > avctx - > time_base . num ;
int64_t n1 = 1001LL * s - > avctx - > time_base . den ;
int64_t n1 = 1001LL * s - > avctx - > time_base . den ;
if ( s - > avctx - > strict_std_compliance > FF_COMPLIANCE_UNOFFICIAL & & i > = 9 ) break ;
if ( s - > avctx - > strict_std_compliance > FF_COMPLIANCE_UNOFFICIAL & & i > = 9 ) break ;
@ -195,7 +195,7 @@ static void mpeg1_encode_sequence_header(MpegEncContext *s)
if ( aspect_ratio = = 0.0 ) aspect_ratio = 1.0 ; //pixel aspect 1:1 (VGA)
if ( aspect_ratio = = 0.0 ) aspect_ratio = 1.0 ; //pixel aspect 1:1 (VGA)
if ( s - > current_picture . f . key_frame ) {
if ( s - > current_picture . f . key_frame ) {
AVRational framerate = avpriv _frame_rate_tab[ s - > frame_rate_index ] ;
AVRational framerate = ff_mpeg12 _frame_rate_tab [ s - > frame_rate_index ] ;
/* mpeg1 header repeated every gop */
/* mpeg1 header repeated every gop */
put_header ( s , SEQ_START_CODE ) ;
put_header ( s , SEQ_START_CODE ) ;
@ -958,7 +958,7 @@ AVCodec ff_mpeg1video_encoder = {
. init = encode_init ,
. init = encode_init ,
. encode2 = ff_MPV_encode_picture ,
. encode2 = ff_MPV_encode_picture ,
. close = ff_MPV_encode_end ,
. close = ff_MPV_encode_end ,
. supported_framerates = avpriv_frame_rate_tab + 1 ,
. supported_framerates = ff_mpeg12_frame_rate_tab + 1 ,
. pix_fmts = ( const enum AVPixelFormat [ ] ) { AV_PIX_FMT_YUV420P ,
. pix_fmts = ( const enum AVPixelFormat [ ] ) { AV_PIX_FMT_YUV420P ,
AV_PIX_FMT_NONE } ,
AV_PIX_FMT_NONE } ,
. capabilities = CODEC_CAP_DELAY | CODEC_CAP_SLICE_THREADS ,
. capabilities = CODEC_CAP_DELAY | CODEC_CAP_SLICE_THREADS ,
@ -974,7 +974,7 @@ AVCodec ff_mpeg2video_encoder = {
. init = encode_init ,
. init = encode_init ,
. encode2 = ff_MPV_encode_picture ,
. encode2 = ff_MPV_encode_picture ,
. close = ff_MPV_encode_end ,
. close = ff_MPV_encode_end ,
. supported_framerates = avpriv _frame_rate_tab + 1 ,
. supported_framerates = ff_mpeg12 _frame_rate_tab + 1 ,
. pix_fmts = ( const enum AVPixelFormat [ ] ) {
. pix_fmts = ( const enum AVPixelFormat [ ] ) {
AV_PIX_FMT_YUV420P , AV_PIX_FMT_YUV422P , AV_PIX_FMT_NONE
AV_PIX_FMT_YUV420P , AV_PIX_FMT_YUV422P , AV_PIX_FMT_NONE
} ,
} ,