[FFmpeg-cvslog] ffmpeg.c: Add a necessary const qualifier
Alex Converse
git at videolan.org
Fri Jun 10 04:53:06 CEST 2011
ffmpeg | branch: master | Alex Converse <alex.converse at gmail.com> | Thu Jun 9 09:52:47 2011 -0700| [9a1b79128c25a5c1004bbd0af85a68c9a2a3e580] | committer: Alex Converse
ffmpeg.c: Add a necessary const qualifier
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9a1b79128c25a5c1004bbd0af85a68c9a2a3e580
---
ffmpeg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 5099fc2..cbcdba8 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -573,7 +573,7 @@ static void update_sample_fmt(AVCodecContext *dec, AVCodec *dec_codec,
if (dec_codec && dec_codec->sample_fmts &&
dec_codec->sample_fmts[0] != AV_SAMPLE_FMT_NONE &&
dec_codec->sample_fmts[1] != AV_SAMPLE_FMT_NONE) {
- enum AVSampleFormat *p;
+ const enum AVSampleFormat *p;
int min_dec = -1, min_inc = -1;
/* find a matching sample format in the encoder */
More information about the ffmpeg-cvslog
mailing list