Commit f1c371a3 authored by Jeremy Simon's avatar Jeremy Simon

ext/ffmpeg/gstffmpegcodecmap.c: Fix SVQ3 decoding on PPC

Original commit message from CVS:
2004-01-26  Jeremy Simon  <jesimon@libertysurf.fr>
* ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_caps_to_extradata):
Fix SVQ3 decoding on PPC
parent 2a56f1ce
...@@ -703,6 +703,9 @@ gst_ffmpeg_caps_to_extradata (const GstCaps *caps, ...@@ -703,6 +703,9 @@ gst_ffmpeg_caps_to_extradata (const GstCaps *caps,
flags |= thirdpel_flag; flags |= thirdpel_flag;
flags = flags << 3; flags = flags << 3;
if (G_BYTE_ORDER == G_BIG_ENDIAN)
flags = (flags << 8) | (8 >> flags);
memcpy (context->extradata + 0x62, &flags, 2); memcpy (context->extradata + 0x62, &flags, 2);
context->extradata_size = 0x64; 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