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