aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/gif.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-07-17 22:24:36 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-07-17 22:24:36 +0000
commit01f4895c682a1752bf6d138ffb0628470e16b85a (patch)
tree56a3dfce270dad38b97c8f7ff288cc23cfac54da /libavformat/gif.c
parent4c1a012e9ceb0840688c547625208e7c4b81624a (diff)
downloadffmpeg-01f4895c682a1752bf6d138ffb0628470e16b85a.tar.gz
changing AVCodecContext codec -> *codec in AVStream so additions to AVCodecContext dont randomize AVStream and break binary compatibility
Originally committed as revision 4453 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/gif.c')
-rw-r--r--libavformat/gif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/gif.c b/libavformat/gif.c
index 1248139d79..be5b7b973d 100644
--- a/libavformat/gif.c
+++ b/libavformat/gif.c
@@ -327,7 +327,7 @@ static int gif_write_header(AVFormatContext *s)
video_enc = NULL;
for(i=0;i<s->nb_streams;i++) {
- enc = &s->streams[i]->codec;
+ enc = s->streams[i]->codec;
if (enc->codec_type != CODEC_TYPE_AUDIO)
video_enc = enc;
}
@@ -388,7 +388,7 @@ static int gif_write_video(AVFormatContext *s,
static int gif_write_packet(AVFormatContext *s, AVPacket *pkt)
{
- AVCodecContext *codec = &s->streams[pkt->stream_index]->codec;
+ AVCodecContext *codec = s->streams[pkt->stream_index]->codec;
if (codec->codec_type == CODEC_TYPE_AUDIO)
return 0; /* just ignore audio */
else