projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c9d1924
)
Do not set pts in update_initial_durations() if stream has b frames.
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 3 Jun 2008 00:43:56 +0000
(
00:43
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 3 Jun 2008 00:43:56 +0000
(
00:43
+0000)
Originally committed as revision 13639 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
95abbe2
..
47324ea
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-645,7
+645,9
@@
static void update_initial_durations(AVFormatContext *s, AVStream *st, AVPacket
continue;
if(pktl->pkt.pts == pktl->pkt.dts && pktl->pkt.dts == AV_NOPTS_VALUE
&& !pktl->pkt.duration){
- pktl->pkt.pts= pktl->pkt.dts= st->cur_dts;
+ pktl->pkt.dts= st->cur_dts;
+ if(!st->codec->has_b_frames)
+ pktl->pkt.pts= st->cur_dts;
st->cur_dts += pkt->duration;
pktl->pkt.duration= pkt->duration;
}else