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
This commit is contained in:
@@ -237,6 +237,7 @@ static int img_read_packet(AVFormatContext *s1, AVPacket *pkt)
|
|||||||
av_free_packet(pkt);
|
av_free_packet(pkt);
|
||||||
return -EIO; /* signal EOF */
|
return -EIO; /* signal EOF */
|
||||||
} else {
|
} 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++;
|
s->img_number++;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user