Paul B Mahol: > Hi, > > patch attached. > > return ret; > } > > + pkt->duration = av_rescale_q(pict->duration, (AVRational){ 1, 100 }, > + avctx->time_base); > pkt->size = outbuf_ptr - pkt->data; > if (s->image || !avctx->frame_number) > pkt->flags |= AV_PKT_FLAG_KEY;
Where does the magic 1/100 timebase come from? For encoding, the AVFrame's time base is supposed to be AVCodecContext.time_base. This could actually be done generically for all video-encoders without delay. (I know that AVFrame has a time_base of its own that is currently unset and unused.) - Andreas _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".