mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
ext/ffmpeg/gstffmpegcodecmap.h: Avoid division by 0 errors.
Original commit message from CVS: * ext/ffmpeg/gstffmpegcodecmap.h: Avoid division by 0 errors.
This commit is contained in:
parent
f9a174c86e
commit
00aa9d5fba
3 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2005-09-20 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
|
* ext/ffmpeg/gstffmpegcodecmap.h:
|
||||||
|
Avoid division by 0 errors.
|
||||||
|
|
||||||
2005-09-19 Wim Taymans <wim@fluendo.com>
|
2005-09-19 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_setcaps),
|
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_setcaps),
|
||||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
||||||
Subproject commit eac450a673cd1d3a606fe75399d0cd1fcb1d0d7b
|
Subproject commit cd4da6a319d9f92d28f7b8a3b412577e6de50b64
|
|
@ -155,7 +155,7 @@ gst_ffmpeg_time_gst_to_ff (guint64 time, AVRational base)
|
||||||
{
|
{
|
||||||
gint64 out;
|
gint64 out;
|
||||||
|
|
||||||
if (!GST_CLOCK_TIME_IS_VALID (time)) {
|
if (!GST_CLOCK_TIME_IS_VALID (time) || base.num == 0) {
|
||||||
out = AV_NOPTS_VALUE;
|
out = AV_NOPTS_VALUE;
|
||||||
} else {
|
} else {
|
||||||
AVRational bq = { 1, GST_SECOND };
|
AVRational bq = { 1, GST_SECOND };
|
||||||
|
|
Loading…
Reference in a new issue