summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorHe Junyan <junyan.he@intel.com>2021-07-23 12:31:17 +0800
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-07-23 19:52:48 +0000
commiteef90676194dcbd1cfc07a322e7a20ad6b8cecb3 (patch)
tree27ed906d18f085e64b115e32968993ed73b9d498 /gst-libs
parentd2a7b763bef3ca51f0c84cdac52eeed85b0db8fb (diff)
downloadgstreamer-plugins-bad-eef90676194dcbd1cfc07a322e7a20ad6b8cecb3.tar.gz
codecs: h264dec: Fix a typo in construct_ref_field_pic_lists_b.
The array sort of ref_frame_list_0_short_term has some typo. The typo makes this list not in the POC ascend order and generate wrong decoding result for interlaced streams. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2425>
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/codecs/gsth264decoder.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst-libs/gst/codecs/gsth264decoder.c b/gst-libs/gst/codecs/gsth264decoder.c
index 3baf4118b..3e9b817b3 100644
--- a/gst-libs/gst/codecs/gsth264decoder.c
+++ b/gst-libs/gst/codecs/gsth264decoder.c
@@ -2619,7 +2619,8 @@ construct_ref_field_pic_lists_b (GstH264Decoder * self,
/* First sort ascending, this will put [1] in right place and finish
* [2]. */
print_ref_pic_list_b (self, priv->ref_frame_list_0_short_term, 0);
- g_array_sort (priv->ref_pic_list_b0, (GCompareFunc) poc_asc_compare);
+ g_array_sort (priv->ref_frame_list_0_short_term,
+ (GCompareFunc) poc_asc_compare);
print_ref_pic_list_b (self, priv->ref_frame_list_0_short_term, 0);
/* Find first with POC > current_picture's POC to get first element