amlogic/vh264: non-idr or non-I frame will set pts_valid
authorafl1 <afl2001@gmail.com>
Sun, 10 Mar 2019 07:51:06 +0000 (08:51 +0100)
committerNick Xie <nick@khadas.com>
Fri, 12 Jul 2019 05:36:43 +0000 (13:36 +0800)
drivers/amlogic/media_modules/frame_provider/decoder/h264/vh264.c

index 7cbc73c..f5fe8c3 100644 (file)
@@ -2342,7 +2342,8 @@ static void vh264_isr(void)
 
                                h264_pts_count++;
                        } else {
-                               if (!idr_flag)
+                               /* non-idr or non-I frame will set pts_valid */
+                               if (!idr_flag && !(slice_type == SLICE_TYPE_I))
                                        pts_valid = 0;
                        }