History

avformat: Constify the API wrt AV(In|Out)putFormat

Also constify AVProbeData.

Andreas Rheinhardt committed 5 years ago

Commit 56450a01 parent f0c7fa229 files · +84 −78Browse files

Showing the changes to libavfilter (2 of 29 files). Show all

Unified · Split

2 files
  1. libavfilter/lavfutils.c +1 −1
  2. libavfilter/src_movie.c +1 −1
libavfilter/lavfutils.c+1−1
@@ -26,7 +26,7 @@ int ff_load_image(uint8_t *data[4], int linesize[4], · 25 unmodified lines
2626 int *w, int *h, enum AVPixelFormat *pix_fmt,
2727 const char *filename, void *log_ctx)
2828 {
29− AVInputFormat *iformat = NULL;
29+ const AVInputFormat *iformat = NULL;
3030 AVFormatContext *format_ctx = NULL;
3131 const AVCodec *codec;
3232 AVCodecContext *codec_ctx = NULL;
libavfilter/src_movie.c+1−1
@@ -205,7 +205,7 @@ static int guess_channel_layout(MovieStream *st, int st_index, void *log_ctx) · 204 unmodified lines
205205 static av_cold int movie_common_init(AVFilterContext *ctx)
206206 {
207207 MovieContext *movie = ctx->priv;
208− AVInputFormat *iformat = NULL;
208+ const AVInputFormat *iformat = NULL;
209209 int64_t timestamp;
210210 int nb_streams = 1, ret, i;
211211 char default_streams[16], *stream_specs, *spec, *cursor;

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