projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12701f6
)
set avctx time_base in dv decoder
author
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Wed, 28 May 2008 23:56:25 +0000
(23:56 +0000)
committer
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Wed, 28 May 2008 23:56:25 +0000
(23:56 +0000)
Originally committed as revision 13515 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/dv.c
patch
|
blob
|
history
diff --git
a/libavcodec/dv.c
b/libavcodec/dv.c
index
71602f5
..
c52387a
100644
(file)
--- a/
libavcodec/dv.c
+++ b/
libavcodec/dv.c
@@
-1046,6
+1046,7
@@
static int dvvideo_decode_frame(AVCodecContext *avctx,
s->picture.key_frame = 1;
s->picture.pict_type = FF_I_TYPE;
avctx->pix_fmt = s->sys->pix_fmt;
+ avctx->time_base = (AVRational){s->sys->frame_rate_base, s->sys->frame_rate};
avcodec_set_dimensions(avctx, s->sys->width, s->sys->height);
if(avctx->get_buffer(avctx, &s->picture) < 0) {
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");