Index: avidemux_2.3.0/avidemux/ADM_lavformat/ADM_lavformat.cpp =================================================================== --- avidemux_2.3.0.orig/avidemux/ADM_lavformat/ADM_lavformat.cpp +++ avidemux_2.3.0/avidemux/ADM_lavformat/ADM_lavformat.cpp @@ -257,10 +257,15 @@ uint8_t lavMuxer::open(const char *filen c->width = info->width; c->height = info->height; + AVRational fps25 = (AVRational){1001,25025}; + AVRational fps24 = (AVRational){1001,24000}; + AVRational fps30 = (AVRational){1001,30000}; + AVRational fpsfree = (AVRational){1001,_fps1000}; + switch(_fps1000) { case 25000: - c->time_base= (AVRational){1001,25025}; + c->time_base= fps25; //c->frame_rate = 25025; //c->frame_rate_base = 1001; break; @@ -272,18 +277,18 @@ uint8_t lavMuxer::open(const char *filen */ if(_type==MUXER_MP4 || _type==MUXER_PSP) { - c->time_base= (AVRational){1001,24000}; + c->time_base= fps24; break; } case 29970: - c->time_base= (AVRational){1001,30000}; + c->time_base= fps30; //c->frame_rate = 30000; //c->frame_rate_base = 1001; break; default: if(_type==MUXER_MP4 || _type==MUXER_PSP) { - c->time_base= (AVRational){1000,_fps1000}; + c->time_base= fpsfree; break; } else