mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 02:58:24 +00:00
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
This commit is contained in:
parent
8e29a788e4
commit
86c1959403
1 changed files with 5 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue