This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
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
tags/v0.5
Philip Gladstone
22 years ago
parent
86f2b9d0c7
commit
e752dc90c2
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
libav/img.c
+ 1
- 0
libav/img.c
View File
@@ -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;
}
Write
Preview
Loading…
Cancel
Save