mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
ext/ffmpeg/gstffmpegenc.c (gst_ffmpegenc_chain_video): set the GST_BUFFER_DELTA_UNIT while encoding fix #308804
Original commit message from CVS: Reviewed by: Luca Ognibene <luogni@tin.it> * ext/ffmpeg/gstffmpegenc.c (gst_ffmpegenc_chain_video): set the GST_BUFFER_DELTA_UNIT while encoding fix #308804
This commit is contained in:
parent
7c05c7fc1e
commit
2cfc4961ef
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2005-06-25 Sebastien Cote <sc5@hermes.usherb.ca>
|
||||||
|
|
||||||
|
Reviewed by: Luca Ognibene <luogni@tin.it>
|
||||||
|
|
||||||
|
* ext/ffmpeg/gstffmpegenc.c (gst_ffmpegenc_chain_video):
|
||||||
|
set the GST_BUFFER_DELTA_UNIT while encoding
|
||||||
|
fix #308804
|
||||||
|
|
||||||
2005-06-20 Edward Hervey <edward@fluendo.com>
|
2005-06-20 Edward Hervey <edward@fluendo.com>
|
||||||
|
|
||||||
* ext/libpostproc/gstpostproc.c: (gst_postproc_register):
|
* ext/libpostproc/gstpostproc.c: (gst_postproc_register):
|
||||||
|
|
|
@ -488,6 +488,8 @@ gst_ffmpegenc_chain_video (GstPad * pad, GstData * _data)
|
||||||
GST_BUFFER_SIZE (outbuf) = ret_size;
|
GST_BUFFER_SIZE (outbuf) = ret_size;
|
||||||
GST_BUFFER_TIMESTAMP (outbuf) = GST_BUFFER_TIMESTAMP (inbuf);
|
GST_BUFFER_TIMESTAMP (outbuf) = GST_BUFFER_TIMESTAMP (inbuf);
|
||||||
GST_BUFFER_DURATION (outbuf) = GST_BUFFER_DURATION (inbuf);
|
GST_BUFFER_DURATION (outbuf) = GST_BUFFER_DURATION (inbuf);
|
||||||
|
if (ffmpegenc->context->coded_frame->key_frame == 0)
|
||||||
|
GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_DELTA_UNIT);
|
||||||
gst_pad_push (ffmpegenc->srcpad, GST_DATA (outbuf));
|
gst_pad_push (ffmpegenc->srcpad, GST_DATA (outbuf));
|
||||||
|
|
||||||
gst_buffer_unref (inbuf);
|
gst_buffer_unref (inbuf);
|
||||||
|
|
Loading…
Reference in a new issue