Skip to content

media: hantro/rkvdec handle unsupported H.264 bitstreams

Ezequiel Garcia linux-media linux-rockchip lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 3 repliesSuperseded

Changes in v2 from the cover letter

* Use p_new instead of p_cur.
* s/PPS/SPS in commit log.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2rkvdec: h264: Refuse to decode unsupported bitstreamdrivers/staging/media/rkvdec/rkvdec.c+27 -00 replies
2/2hantro: h264: Refuse to decode unsupported bitstreamdrivers/staging/media/hantro/hantro_drv.c+26 -30 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJonas KarlmanPhilipp Zabel
1/2R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] media: hantro/rkvdec handle unsupported H.264 bitstreams

Hi all,

Small patchset to add a check at TRY_EXT_CTRLS time, via the H264 SPS control and reject unsupported bitstreams.

Properly refusing to decode unsupported bitstreams allows applications to cleanly fallback to software decoding.

Note that Rockchip VDEC hardware is capable of decoding High-10 and High-422 bitstreams. This needs more work, so for now they are refused.

The same approach can be use on Cedrus, but since I'm not very familiar there, I'll leave that to others.

Applies on top of media master.

v2:
* Use p_new instead of p_cur.
* s/PPS/SPS in commit log.

Ezequiel Garcia (2):
rkvdec: h264: Refuse to decode unsupported bitstream
hantro: h264: Refuse to decode unsupported bitstream

 drivers/staging/media/hantro/hantro_drv.c | 29 ++++++++++++++++++++---
 drivers/staging/media/rkvdec/rkvdec.c     | 27 +++++++++++++++++++++
 2 files changed, 53 insertions(+), 3 deletions(-)
Signature · 1 line
2.27.0