Commit ffaf42c1 authored by Aurelien Grimaud's avatar Aurelien Grimaud Committed by Mark Nauwelaerts

ext/ffmpeg/gstffmpegmux.c: Properly convert buffer duration to an ffmpeg packet duration.

Original commit message from CVS:
Based on a patch by: Aurelien Grimaud <gstelzz at yahoo dot fr>
* ext/ffmpeg/gstffmpegmux.c: (gst_ffmpegmux_collected):
Properly convert buffer duration to an ffmpeg packet duration.
Fixes #371939.
parent 17e954b0
2008-07-06 Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Based on a patch by: Aurelien Grimaud <gstelzz at yahoo dot fr>
* ext/ffmpeg/gstffmpegmux.c: (gst_ffmpegmux_collected):
Properly convert buffer duration to an ffmpeg packet duration.
Fixes #371939.
2008-07-01 Jan Schmidt <jan.schmidt@sun.com> 2008-07-01 Jan Schmidt <jan.schmidt@sun.com>
* ext/ffmpeg/gstffmpegdec.c: * ext/ffmpeg/gstffmpegdec.c:
......
common @ 593bb114
Subproject commit d9cd98b46aebaf143dc43d8563a3bff650be6a7e Subproject commit 593bb114c6f5c32b529aa6443be4c2d60d6484c7
...@@ -569,8 +569,8 @@ gst_ffmpegmux_collected (GstCollectPads * pads, gpointer user_data) ...@@ -569,8 +569,8 @@ gst_ffmpegmux_collected (GstCollectPads * pads, gpointer user_data)
if (GST_BUFFER_DURATION_IS_VALID (buf)) if (GST_BUFFER_DURATION_IS_VALID (buf))
pkt.duration = pkt.duration =
gst_util_uint64_scale_int (GST_BUFFER_DURATION (buf), AV_TIME_BASE, gst_ffmpeg_time_gst_to_ff (GST_BUFFER_DURATION (buf),
GST_SECOND); ffmpegmux->context->streams[best_pad->padnum]->time_base);
else else
pkt.duration = 0; pkt.duration = 0;
av_write_frame (ffmpegmux->context, &pkt); av_write_frame (ffmpegmux->context, &pkt);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment