mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
libavformat: add const to AVCodec pointers
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
parent
11434c9b13
commit
edb5238ccb
@ -2075,7 +2075,7 @@ static int has_decode_delay_been_guessed(AVStream *st)
|
|||||||
/* returns 1 or 0 if or if not decoded data was returned, or a negative error */
|
/* returns 1 or 0 if or if not decoded data was returned, or a negative error */
|
||||||
static int try_decode_frame(AVStream *st, AVPacket *avpkt, AVDictionary **options)
|
static int try_decode_frame(AVStream *st, AVPacket *avpkt, AVDictionary **options)
|
||||||
{
|
{
|
||||||
AVCodec *codec;
|
const AVCodec *codec;
|
||||||
int got_picture = 1, ret = 0;
|
int got_picture = 1, ret = 0;
|
||||||
AVFrame picture;
|
AVFrame picture;
|
||||||
AVPacket pkt = *avpkt;
|
AVPacket pkt = *avpkt;
|
||||||
@ -2236,7 +2236,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
|
|||||||
int orig_nb_streams = ic->nb_streams; // new streams might appear, no options for those
|
int orig_nb_streams = ic->nb_streams; // new streams might appear, no options for those
|
||||||
|
|
||||||
for(i=0;i<ic->nb_streams;i++) {
|
for(i=0;i<ic->nb_streams;i++) {
|
||||||
AVCodec *codec;
|
const AVCodec *codec;
|
||||||
AVDictionary *thread_opt = NULL;
|
AVDictionary *thread_opt = NULL;
|
||||||
st = ic->streams[i];
|
st = ic->streams[i];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user