From 2f28fcb86298ee19f604ac6f82802d35e71ee3d6 Mon Sep 17 00:00:00 2001 From: Fabrice Bellet Date: Thu, 17 Jul 2014 16:25:54 +0200 Subject: [PATCH] parser: mpeg4: fix vlc table used for sprite trajectory The vlc table members cbits, cword and values were assigned in the wrong order, causing the mpeg4 parser to fail when handling sprite trajectories. https://bugzilla.gnome.org/show_bug.cgi?id=733322 --- gst-libs/gst/codecparsers/gstmpeg4parser.c | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/gst-libs/gst/codecparsers/gstmpeg4parser.c b/gst-libs/gst/codecparsers/gstmpeg4parser.c index 4bf63e57cc..a2e63a2e44 100644 --- a/gst-libs/gst/codecparsers/gstmpeg4parser.c +++ b/gst-libs/gst/codecparsers/gstmpeg4parser.c @@ -123,21 +123,21 @@ static const guint8 mpeg4_zigzag_8x8[64] = { }; static const VLCTable mpeg4_dmv_size_vlc_table[] = { - {0x00, 2, 0}, - {0x02, 3, 1}, - {0x03, 3, 2}, - {0x04, 3, 3}, - {0x05, 3, 4}, - {0x06, 3, 5}, - {0x0e, 4, 6}, - {0x1e, 5, 7}, - {0x3e, 6, 8}, - {0x7e, 7, 9}, - {0xfe, 8, 10}, - {0x1fe, 9, 11}, - {0x3fe, 10, 12}, - {0x7fe, 11, 13}, - {0xffe, 12, 14} + {0, 0x00, 2}, + {1, 0x02, 3}, + {2, 0x03, 3}, + {3, 0x04, 3}, + {4, 0x05, 3}, + {5, 0x06, 3}, + {6, 0x0e, 4}, + {7, 0x1e, 5}, + {8, 0x3e, 6}, + {9, 0x7e, 7}, + {10, 0xfe, 8}, + {11, 0x1fe, 9}, + {12, 0x3fe, 10}, + {13, 0x7fe, 11}, + {14, 0xffe, 12} }; static void