Revision 72415b2a libavformat/avs.c

View differences:

libavformat/avs.c
178 178
                    avs->st_video = av_new_stream(s, AVS_VIDEO);
179 179
                    if (avs->st_video == NULL)
180 180
                        return AVERROR(ENOMEM);
181
                    avs->st_video->codec->codec_type = CODEC_TYPE_VIDEO;
181
                    avs->st_video->codec->codec_type = AVMEDIA_TYPE_VIDEO;
182 182
                    avs->st_video->codec->codec_id = CODEC_ID_AVS;
183 183
                    avs->st_video->codec->width = avs->width;
184 184
                    avs->st_video->codec->height = avs->height;
......
195 195
                    avs->st_audio = av_new_stream(s, AVS_AUDIO);
196 196
                    if (avs->st_audio == NULL)
197 197
                        return AVERROR(ENOMEM);
198
                    avs->st_audio->codec->codec_type = CODEC_TYPE_AUDIO;
198
                    avs->st_audio->codec->codec_type = AVMEDIA_TYPE_AUDIO;
199 199
                }
200 200
                avs->remaining_audio_size = size - 4;
201 201
                size = avs_read_audio_packet(s, pkt);

Also available in: Unified diff