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:
86f2b9d
)
Set the pkt->pts field correctly so that frame rate reduction has a chance
author
Philip Gladstone
<philipjsg@users.sourceforge.net>
Wed, 20 Nov 2002 02:58:08 +0000
(
02:58
+0000)
committer
Philip Gladstone
<philipjsg@users.sourceforge.net>
Wed, 20 Nov 2002 02:58:08 +0000
(
02:58
+0000)
of working
Originally committed as revision 1243 to svn://svn.ffmpeg.org/ffmpeg/trunk
libav/img.c
patch
|
blob
|
history
diff --git
a/libav/img.c
b/libav/img.c
index
7d092d8
..
305cbb0
100644
(file)
--- 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;
}