summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-05-20 14:11:48 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-05-20 16:29:07 +0200
commitcf9812d22b00eb135288e799698f63f0f2094aaf (patch)
tree148cebd0795a85bfecea7aac3a0d59186009ea8c /ffmpeg.c
parentcd945d2112ad9484fcfa27614f439fc36babddf5 (diff)
downloadffmpeg-cf9812d22b00eb135288e799698f63f0f2094aaf.tar.gz
ffmpeg: move setting big_picture.pts up
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 5bb227edb2..1c29f88c7b 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1982,6 +1982,8 @@ duplicate_frame:
pkt.data = NULL;
pkt.size = 0;
+ in_picture->pts = ost->sync_opts;
+
if (s->oformat->flags & AVFMT_RAWPICTURE &&
enc->codec->id == CODEC_ID_RAWVIDEO) {
/* raw pictures are written as AVPicture structure to
@@ -2015,7 +2017,6 @@ duplicate_frame:
big_picture.quality = quality;
if (!enc->me_threshold)
big_picture.pict_type = 0;
- big_picture.pts = ost->sync_opts;
if (ost->forced_kf_index < ost->forced_kf_count &&
big_picture.pts >= ost->forced_kf_pts[ost->forced_kf_index]) {
big_picture.pict_type = AV_PICTURE_TYPE_I;