[vlc-commits] nvdec: always set the top field order in the picture

Steve Lhomme git at videolan.org
Mon Nov 9 15:30:48 CET 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Nov  6 09:25:16 2020 +0100| [46485a27dda918fec406864dcceae3a2a8203f83] | committer: Steve Lhomme

nvdec: always set the top field order in the picture

We don't need to care if it's interlaced or not.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=46485a27dda918fec406864dcceae3a2a8203f83
---

 modules/hw/nvdec/nvdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/hw/nvdec/nvdec.c b/modules/hw/nvdec/nvdec.c
index 2ad4e2089b..ebed90be51 100644
--- a/modules/hw/nvdec/nvdec.c
+++ b/modules/hw/nvdec/nvdec.c
@@ -552,13 +552,13 @@ static int CUDAAPI HandlePictureDisplay(void *p_opaque, CUVIDPARSERDISPINFO *p_d
     {
         // the picture has not been deinterlaced, forward the field parameters
         p_pic->b_progressive = p_dispinfo->progressive_frame;
-        p_pic->b_top_field_first = p_dispinfo->top_field_first;
         p_pic->i_nb_fields = 2 + p_dispinfo->repeat_first_field;
     }
     else
     {
         p_pic->b_progressive = true;
     }
+    p_pic->b_top_field_first = p_dispinfo->top_field_first;
     p_pic->date = p_dispinfo->timestamp;
 
     // Push decoded frame to display queue



More information about the vlc-commits mailing list