]> git.sesse.net Git - ffmpeg/commitdiff
replaced av_dv_codec_profile by av_dv_codec_profile2 in encoder and dv muxers
authorSteve Jiekak <devaureshy@gmail.com>
Thu, 4 Dec 2014 13:48:15 +0000 (14:48 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 4 Dec 2014 19:24:00 +0000 (20:24 +0100)
Signed-off-by: Steve Jiekak <devaureshy@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dvenc.c
libavformat/dv.c
libavformat/dvenc.c

index 5d810e3bf50246bbc052acab8f0a83d8395b6dbc..7061508af4c141d8efee37ab3752ee0592fb0f07 100644 (file)
@@ -47,7 +47,7 @@ static av_cold int dvvideo_encode_init(AVCodecContext *avctx)
     PixblockDSPContext pdsp;
     int ret;
 
-    s->sys = av_dv_codec_profile(avctx->width, avctx->height, avctx->pix_fmt);
+    s->sys = av_dv_codec_profile2(avctx->width, avctx->height, avctx->pix_fmt, avctx->time_base);
     if (!s->sys) {
         av_log(avctx, AV_LOG_ERROR, "Found no DV profile for %ix%i %s video. "
                                     "Valid DV profiles are:\n",
index 095966c9eeca7bc2a992fefa0baa4487b566a8d4..4b8593d882beac1fc44ac71f4424010b6c32b93e 100644 (file)
@@ -422,8 +422,8 @@ static int64_t dv_frame_offset(AVFormatContext *s, DVDemuxContext *c,
                                int64_t timestamp, int flags)
 {
     // FIXME: sys may be wrong if last dv_read_packet() failed (buffer is junk)
-    const AVDVProfile *sys = av_dv_codec_profile(c->vst->codec->width, c->vst->codec->height,
-                                                 c->vst->codec->pix_fmt);
+    const AVDVProfile *sys = av_dv_codec_profile2(c->vst->codec->width, c->vst->codec->height,
+                                                 c->vst->codec->pix_fmt, c->vst->codec->time_base);
     int64_t offset;
     int64_t size       = avio_size(s->pb) - s->data_offset;
     int64_t max_offset = ((size - 1) / sys->frame_size) * sys->frame_size;
index 18fdf9fc86a13558c7d3660e6aa6bf5289b98aaf..e99ac3ce7e0de0ab68dd8280303ae04e6af50a27 100644 (file)
@@ -337,7 +337,8 @@ static DVMuxContext* dv_init_mux(AVFormatContext* s)
                 goto bail_out;
         }
     }
-    c->sys = av_dv_codec_profile(vst->codec->width, vst->codec->height, vst->codec->pix_fmt);
+    c->sys = av_dv_codec_profile2(vst->codec->width, vst->codec->height,
+                                  vst->codec->pix_fmt, vst->codec->time_base);
     if (!c->sys)
         goto bail_out;