]> git.baikalelectronics.ru Git - kernel.git/commit
media: vidtv: rewrite the adaption field logic
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 21 Sep 2020 08:05:30 +0000 (10:05 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 1 Oct 2020 07:24:33 +0000 (09:24 +0200)
commit043e2f0e16277284bde823daea506c25265dae93
tree28125676d8c5094d51e12aa7818613ee9db1f2bb
parentb2b9b75a8a20228b0ae850f9eea842ca87d52b94
media: vidtv: rewrite the adaption field logic

When compared with a stream generated via ffmpeg, it can be
noticed that the PES doesn't contain any PCR info. That could
cause problems with userspace decoding. So, rewrite the
logic that fills the adaptation info, in order to allow it
to add PCR frames without breaking frame alignment.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/test-drivers/vidtv/vidtv_mux.c
drivers/media/test-drivers/vidtv/vidtv_pes.c
drivers/media/test-drivers/vidtv/vidtv_pes.h