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
26 int *w, int *h, enum AVPixelFormat *pix_fmt,26 int *w, int *h, enum AVPixelFormat *pix_fmt,
27 const char *filename, void *log_ctx)27 const char *filename, void *log_ctx)
28{28{
29 AVInputFormat *iformat = NULL;29 const AVInputFormat *iformat = NULL;
30 AVFormatContext *format_ctx = NULL;30 AVFormatContext *format_ctx = NULL;
31 const AVCodec *codec;31 const AVCodec *codec;
32 AVCodecContext *codec_ctx = NULL;32 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
205static av_cold int movie_common_init(AVFilterContext *ctx)205static av_cold int movie_common_init(AVFilterContext *ctx)
206{206{
207 MovieContext *movie = ctx->priv;207 MovieContext *movie = ctx->priv;
208 AVInputFormat *iformat = NULL;208 const AVInputFormat *iformat = NULL;
209 int64_t timestamp;209 int64_t timestamp;
210 int nb_streams = 1, ret, i;210 int nb_streams = 1, ret, i;
211 char default_streams[16], *stream_specs, *spec, *cursor;211 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