History

avcodec: Constify AVCodecParserContext.parser

Andreas Rheinhardt committed 5 years ago

Commit cb3ac721 parent a247ac63 files · +5 −2Browse files

Unified · Split

3 files
  1. doc/APIchanges +3 −0
  2. libavcodec/avcodec.h +1 −1
  3. libavcodec/parser.c +1 −1
doc/APIchanges+3−0
@@ -14,6 +14,9 @@ libavutil: 2017-10-21 · 13 unmodified lines
1414
1515 API changes, most recent first:
1616
17+2021-04-27 - xxxxxxxxxx - lavc yyyyyyyyy - avcodec.h
18+ Constified AVCodecParserContext.parser.
19+
1720 2021-04-27 - xxxxxxxxxx - lavd yyyyyyyyy - avdevice.h
1821 The av_*_device_next API functions now accept and return
1922 pointers to const AVInputFormat resp. AVOutputFormat.
libavcodec/avcodec.h+1−1
@@ -2877,7 +2877,7 @@ enum AVPictureStructure { · 2876 unmodified lines
28772877
28782878 typedef struct AVCodecParserContext {
28792879 void *priv_data;
2880− struct AVCodecParser *parser;
2880+ const struct AVCodecParser *parser;
28812881 int64_t frame_offset; /* offset of the current frame */
28822882 int64_t cur_offset; /* current offset
28832883 (incremented by each av_parser_parse()) */
libavcodec/parser.c+1−1
@@ -55,7 +55,7 @@ found: · 54 unmodified lines
5555 s = av_mallocz(sizeof(AVCodecParserContext));
5656 if (!s)
5757 goto err_out;
58− s->parser = (AVCodecParser*)parser;
58+ s->parser = parser;
5959 s->priv_data = av_mallocz(parser->priv_data_size);
6060 if (!s->priv_data)
6161 goto err_out;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t