Commit 86c19594 authored by Jeremy Simon's avatar Jeremy Simon

ext/ffmpeg/gstffmpegcodecmap.c: Fix SVQ3 caps flag properties

Original commit message from CVS:
2004-02-02  Jeremy Simon  <jesimon@libertysurf.fr>
* ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_codecid_to_caps),
(gst_ffmpeg_caps_to_extradata):
Fix SVQ3 caps flag properties
Use glib macro for bytes swap
parent 8e29a788
......@@ -194,10 +194,10 @@ gst_ffmpeg_codecid_to_caps (enum CodecID codec_id,
case CODEC_ID_SVQ3:
caps = GST_FF_VID_CAPS_NEW ("video/x-svq",
"svqversion", G_TYPE_INT, 3,
"halfpel_flag", GST_TYPE_INT_RANGE, G_MININT, G_MAXINT,
"thirdpel_flag", GST_TYPE_INT_RANGE, G_MININT, G_MAXINT,
"low_delay", GST_TYPE_INT_RANGE, G_MININT, G_MAXINT,
"unknown_svq3_flag", GST_TYPE_INT_RANGE, G_MININT, G_MAXINT,
"halfpel_flag", GST_TYPE_INT_RANGE, 0, 1,
"thirdpel_flag", GST_TYPE_INT_RANGE, 0, 1,
"low_delay", GST_TYPE_INT_RANGE, 0, 1,
"unknown_svq3_flag", GST_TYPE_INT_RANGE, 0, 1,
NULL);
break;
......@@ -701,8 +701,7 @@ gst_ffmpeg_caps_to_extradata (const GstCaps *caps,
flags |= thirdpel_flag;
flags = flags << 3;
if (G_BYTE_ORDER == G_BIG_ENDIAN)
flags = (flags << 8) | (8 >> flags);
flags = GUINT16_FROM_LE (flags);
memcpy (context->extradata + 0x62, &flags, 2);
context->extradata_size = 0x64;
......
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