Browse Source

ffmpeg: change AVFMT_RAWPICTURE pts to reduce diff to qatar

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 13 years ago
parent
commit
bf3dce6b59
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ffmpeg.c

+ 1
- 1
ffmpeg.c View File

@@ -1991,7 +1991,7 @@ duplicate_frame:
enc->coded_frame->top_field_first = in_picture->top_field_first; enc->coded_frame->top_field_first = in_picture->top_field_first;
pkt.data = (uint8_t *)in_picture; pkt.data = (uint8_t *)in_picture;
pkt.size = sizeof(AVPicture); pkt.size = sizeof(AVPicture);
pkt.pts = av_rescale_q(ost->sync_opts, enc->time_base, ost->st->time_base);
pkt.pts = av_rescale_q(in_picture->pts, enc->time_base, ost->st->time_base);
pkt.flags |= AV_PKT_FLAG_KEY; pkt.flags |= AV_PKT_FLAG_KEY;


write_frame(s, &pkt, ost); write_frame(s, &pkt, ost);


Loading…
Cancel
Save