diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-04 18:49:37 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-09 19:37:53 +0200 |
commit | 4ad686269d3025a2841b026a82bd26b6a0dd4a3f (patch) | |
tree | 080c22a05c1810fb7e12cceb3439395322468df3 /libavcodec/libzvbi-teletextdec.c | |
parent | d5a0eba8a2481711e708442bcc1d14bf16e9d20b (diff) |
avcodec: Add const to decoder packet data pointers
The packets given to decoder need not be writable,
so it is best to access them via const uint8_t*.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/libzvbi-teletextdec.c')
-rw-r--r-- | libavcodec/libzvbi-teletextdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libzvbi-teletextdec.c b/libavcodec/libzvbi-teletextdec.c index 92466cc11e..514e76f1b6 100644 --- a/libavcodec/libzvbi-teletextdec.c +++ b/libavcodec/libzvbi-teletextdec.c @@ -581,7 +581,7 @@ static void handler(vbi_event *ev, void *user_data) vbi_unref_page(&page); } -static int slice_to_vbi_lines(TeletextContext *ctx, uint8_t* buf, int size) +static int slice_to_vbi_lines(TeletextContext *ctx, const uint8_t *buf, int size) { int lines = 0; while (size >= 2 && lines < MAX_SLICES) { |