Commit 7ab889f
media: rkvdec: h264: Fix dpb_valid implementation
The ref builder only provided references that are marked as valid in the
dpb. Thus the current implementation of dpb_valid would always set the
flag to 1. This is not representing missing frames (this is called
'non-existing' pictures in the spec). In some context, these non-existing
pictures still need to occupy a slot in the reference list according to
the spec.
Fixes: cd33c83 ("media: rkvdec: Add the rkvdec driver")
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Reviewed-by: Sebastian Fricke <sebastian.fricke@collabora.com>
Reviewed-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>1 parent 9998943 commit 7ab889f
1 file changed
Lines changed: 24 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
| |||
725 | 726 | | |
726 | 727 | | |
727 | 728 | | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
728 | 749 | | |
729 | 750 | | |
730 | 751 | | |
| |||
762 | 783 | | |
763 | 784 | | |
764 | 785 | | |
765 | | - | |
| 786 | + | |
766 | 787 | | |
767 | 788 | | |
768 | 789 | | |
| |||
779 | 800 | | |
780 | 801 | | |
781 | 802 | | |
782 | | - | |
783 | | - | |
784 | 803 | | |
785 | 804 | | |
786 | 805 | | |
| |||
859 | 878 | | |
860 | 879 | | |
861 | 880 | | |
862 | | - | |
863 | 881 | | |
864 | | - | |
865 | | - | |
866 | | - | |
867 | | - | |
868 | | - | |
| 882 | + | |
869 | 883 | | |
870 | 884 | | |
871 | 885 | | |
| |||
1102 | 1116 | | |
1103 | 1117 | | |
1104 | 1118 | | |
| 1119 | + | |
1105 | 1120 | | |
1106 | 1121 | | |
1107 | 1122 | | |
| |||
0 commit comments