projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
774b7b3
)
mpeg4videoparse: don't set an invalid framerate.
author
Julien Moutte
<dolphy@imac.(none)>
Fri, 15 Jan 2010 20:34:02 +0000
(21:34 +0100)
committer
Julien Moutte
<dolphy@imac.(none)>
Fri, 15 Jan 2010 20:34:02 +0000
(21:34 +0100)
When fixed_vop_rate is not set we can not set a framerate based on
vop_time_increment_resolution as it would most likely be wrong.
Don't set any framerate on the caps in that case.
gst/mpeg4videoparse/mpeg4videoparse.c
patch
|
blob
|
history
diff --git
a/gst/mpeg4videoparse/mpeg4videoparse.c
b/gst/mpeg4videoparse/mpeg4videoparse.c
index
c5463b5
..
6b85603
100644
(file)
--- a/
gst/mpeg4videoparse/mpeg4videoparse.c
+++ b/
gst/mpeg4videoparse/mpeg4videoparse.c
@@
-298,7
+298,8
@@
gst_mpeg4vparse_handle_vo (GstMpeg4VParse * parse, const guint8 * data,
fixed_time_increment = bits;
} else {
- fixed_time_increment = 1;
+ /* When fixed_vop_rate is not set we can't guess any framerate */
+ fixed_time_increment = 0;
}
GST_DEBUG_OBJECT (parse, "fixed time increment %d", fixed_time_increment);