mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
ext/theora/theoradec.c: Export bitrate as metadata.
Original commit message from CVS: * ext/theora/theoradec.c: (theora_dec_chain): Export bitrate as metadata.
This commit is contained in:
parent
a5ba798652
commit
3dfce58f84
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-10-25 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
||||
* ext/theora/theoradec.c: (theora_dec_chain):
|
||||
Export bitrate as metadata.
|
||||
|
||||
2004-10-25 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
||||
* ext/alsa/gstalsamixer.c: (gst_alsa_mixer_build_list):
|
||||
|
|
|
@ -574,6 +574,7 @@ theora_dec_chain (GstPad * pad, GstData * data)
|
|||
gst_data_unref (data);
|
||||
return;
|
||||
}
|
||||
|
||||
if (packet.packetno == 0) {
|
||||
dec->packetno++;
|
||||
} else if (packet.packetno == 1) {
|
||||
|
@ -592,7 +593,8 @@ theora_dec_chain (GstPad * pad, GstData * data)
|
|||
g_free (encoder);
|
||||
}
|
||||
gst_tag_list_add (list, GST_TAG_MERGE_REPLACE,
|
||||
GST_TAG_ENCODER_VERSION, dec->info.version_major, NULL);
|
||||
GST_TAG_ENCODER_VERSION, dec->info.version_major,
|
||||
GST_TAG_NOMINAL_BITRATE, dec->info.target_bitrate, NULL);
|
||||
gst_element_found_tags_for_pad (GST_ELEMENT (dec), dec->srcpad, 0, list);
|
||||
|
||||
dec->packetno++;
|
||||
|
@ -647,6 +649,7 @@ theora_dec_chain (GstPad * pad, GstData * data)
|
|||
|
||||
/* done */
|
||||
theora_decode_init (&dec->state, &dec->info);
|
||||
|
||||
caps = gst_caps_new_simple ("video/x-raw-yuv",
|
||||
"format", GST_TYPE_FOURCC, GST_MAKE_FOURCC ('I', '4', '2', '0'),
|
||||
"framerate", G_TYPE_DOUBLE,
|
||||
|
|
Loading…
Reference in a new issue