summaryrefslogtreecommitdiff
path: root/libavcodec/vbnenc.c
Commit message (Collapse)AuthorAge
* avcodec/vbnenc: Add AV_CODEC_CAP_DR1Andreas Rheinhardt2022-04-13
| | | | | | | This encoder uses ff_get_encode_buffer(). Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/vbn(dec|enc): Avoid always-false checksAndreas Rheinhardt2022-04-13
| | | | | | | | | | Do this by switching to bytestream2_(get|put)_le32u() from bytestream2_(get|put)_le32(); it has after all already been checked that the packet contains at least a full header, making all the implicit checks in bytestream2_(get|put)_le32() dead code. Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/vbn(dec|enc): Avoid leaving stale pointers in contextAndreas Rheinhardt2022-04-13
| | | | | | | | Therefore move the (Get|Put)ByteContext from the context to the stack. It is transient anyway. Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/vbn(dec|enc): Remove empty close functionAndreas Rheinhardt2022-04-13
| | | | | | Reviewed-by: Marton Balint <cus@passwd.hu> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/vbnenc: add VBN encoderMarton Balint2022-04-10
Signed-off-by: Marton Balint <cus@passwd.hu>