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
@ -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>
|
2004-10-25 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
* ext/alsa/gstalsamixer.c: (gst_alsa_mixer_build_list):
|
* ext/alsa/gstalsamixer.c: (gst_alsa_mixer_build_list):
|
||||||
|
@ -574,6 +574,7 @@ theora_dec_chain (GstPad * pad, GstData * data)
|
|||||||
gst_data_unref (data);
|
gst_data_unref (data);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (packet.packetno == 0) {
|
if (packet.packetno == 0) {
|
||||||
dec->packetno++;
|
dec->packetno++;
|
||||||
} else if (packet.packetno == 1) {
|
} else if (packet.packetno == 1) {
|
||||||
@ -592,7 +593,8 @@ theora_dec_chain (GstPad * pad, GstData * data)
|
|||||||
g_free (encoder);
|
g_free (encoder);
|
||||||
}
|
}
|
||||||
gst_tag_list_add (list, GST_TAG_MERGE_REPLACE,
|
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);
|
gst_element_found_tags_for_pad (GST_ELEMENT (dec), dec->srcpad, 0, list);
|
||||||
|
|
||||||
dec->packetno++;
|
dec->packetno++;
|
||||||
@ -647,6 +649,7 @@ theora_dec_chain (GstPad * pad, GstData * data)
|
|||||||
|
|
||||||
/* done */
|
/* done */
|
||||||
theora_decode_init (&dec->state, &dec->info);
|
theora_decode_init (&dec->state, &dec->info);
|
||||||
|
|
||||||
caps = gst_caps_new_simple ("video/x-raw-yuv",
|
caps = gst_caps_new_simple ("video/x-raw-yuv",
|
||||||
"format", GST_TYPE_FOURCC, GST_MAKE_FOURCC ('I', '4', '2', '0'),
|
"format", GST_TYPE_FOURCC, GST_MAKE_FOURCC ('I', '4', '2', '0'),
|
||||||
"framerate", G_TYPE_DOUBLE,
|
"framerate", G_TYPE_DOUBLE,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user