Unified · Split
| @@ -14,6 +14,9 @@ libavutil: 2017-10-21 · 13 unmodified lines | ||
| 14 | 14 | |
| 15 | 15 | API changes, most recent first: |
| 16 | 16 | |
| 17 | +2021-04-27 - xxxxxxxxxx - lavc yyyyyyyyy - avcodec.h | |
| 18 | + Constified AVCodecParserContext.parser. | |
| 19 | + | |
| 17 | 20 | 2021-04-27 - xxxxxxxxxx - lavd yyyyyyyyy - avdevice.h |
| 18 | 21 | The av_*_device_next API functions now accept and return |
| 19 | 22 | pointers to const AVInputFormat resp. AVOutputFormat. |
| @@ -2877,7 +2877,7 @@ enum AVPictureStructure { · 2876 unmodified lines | ||
| 2877 | 2877 | |
| 2878 | 2878 | typedef struct AVCodecParserContext { |
| 2879 | 2879 | void *priv_data; |
| 2880 | − struct AVCodecParser *parser; | |
| 2880 | + const struct AVCodecParser *parser; | |
| 2881 | 2881 | int64_t frame_offset; /* offset of the current frame */ |
| 2882 | 2882 | int64_t cur_offset; /* current offset |
| 2883 | 2883 | (incremented by each av_parser_parse()) */ |
| @@ -55,7 +55,7 @@ found: · 54 unmodified lines | ||
| 55 | 55 | s = av_mallocz(sizeof(AVCodecParserContext)); |
| 56 | 56 | if (!s) |
| 57 | 57 | goto err_out; |
| 58 | − s->parser = (AVCodecParser*)parser; | |
| 58 | + s->parser = parser; | |
| 59 | 59 | s->priv_data = av_mallocz(parser->priv_data_size); |
| 60 | 60 | if (!s->priv_data) |
| 61 | 61 | goto err_out; |