projects
/
platform
/
upstream
/
gst-libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a026c95
)
ffmpegdec: Don't discard timestamps if output AND input are in order
author
Edward Hervey
<bilboed@bilboed.com>
Sun, 29 May 2011 15:39:38 +0000
(17:39 +0200)
committer
Edward Hervey
<bilboed@bilboed.com>
Sun, 29 May 2011 18:09:47 +0000
(20:09 +0200)
Avoids bogus timestamps for AVCHD-lite streams
ext/ffmpeg/gstffmpegdec.c
patch
|
blob
|
history
diff --git
a/ext/ffmpeg/gstffmpegdec.c
b/ext/ffmpeg/gstffmpegdec.c
index
71fe9e3
..
605acb6
100644
(file)
--- a/
ext/ffmpeg/gstffmpegdec.c
+++ b/
ext/ffmpeg/gstffmpegdec.c
@@
-1791,7
+1791,7
@@
gst_ffmpegdec_video_frame (GstFFMpegDec * ffmpegdec,
/* we assume DTS as input timestamps unless we see reordered input
* timestamps */
- if (!ffmpegdec->reordered_in) {
+ if (!ffmpegdec->reordered_in
&& ffmpegdec->reordered_out
) {
/* PTS and DTS are the same for keyframes */
if (!iskeyframe && ffmpegdec->next_out != -1) {
/* interpolate all timestamps except for keyframes, FIXME, this is