diff options
author | Philip Gladstone <philipjsg@users.sourceforge.net> | 2002-11-20 02:58:08 +0000 |
---|---|---|
committer | Philip Gladstone <philipjsg@users.sourceforge.net> | 2002-11-20 02:58:08 +0000 |
commit | e752dc90c27437aaf70f988c2cd0622c9da37f3b (patch) | |
tree | df7c3bc1767d9b351203105f1207a29bb2d9e15d | |
parent | 86f2b9d0c7cee327b1952b8471a0cc2d57a32191 (diff) | |
download | ffmpeg-e752dc90c27437aaf70f988c2cd0622c9da37f3b.tar.gz |
Set the pkt->pts field correctly so that frame rate reduction has a chance
of working
Originally committed as revision 1243 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libav/img.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libav/img.c b/libav/img.c index 7d092d8547..305cbb08f2 100644 --- a/libav/img.c +++ b/libav/img.c @@ -237,6 +237,7 @@ static int img_read_packet(AVFormatContext *s1, AVPacket *pkt) av_free_packet(pkt); return -EIO; /* signal EOF */ } else { + pkt->pts = ((INT64)s->img_number * s1->pts_den * FRAME_RATE_BASE) / (s1->streams[0]->codec.frame_rate * s1->pts_num); s->img_number++; return 0; } |