git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05d1d16
)
Only store timestamps when there are timestamps.
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 2 Jun 2008 14:53:54 +0000
(14:53 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 2 Jun 2008 14:53:54 +0000
(14:53 +0000)
Originally committed as revision 13627 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/parser.c
patch
|
blob
|
history
diff --git
a/libavcodec/parser.c
b/libavcodec/parser.c
index
4b28537
..
8791c74
100644
(file)
--- a/
libavcodec/parser.c
+++ b/
libavcodec/parser.c
@@
-134,12
+134,14
@@
int av_parser_parse(AVCodecParserContext *s,
buf = dummy_buf;
} else {
/* add a new packet descriptor */
+ if(pts != AV_NOPTS_VALUE || dts != AV_NOPTS_VALUE){
i = (s->cur_frame_start_index + 1) & (AV_PARSER_PTS_NB - 1);
s->cur_frame_start_index = i;
s->cur_frame_offset[i] = s->cur_offset;
s->cur_frame_end[i] = s->cur_offset + buf_size;
s->cur_frame_pts[i] = pts;
s->cur_frame_dts[i] = dts;
+ }
}
if (s->fetch_timestamp){