Revision 72415b2a libavformat/smacker.c

View differences:

libavformat/smacker.c
158 158
    st->codec->width = smk->width;
159 159
    st->codec->height = smk->height;
160 160
    st->codec->pix_fmt = PIX_FMT_PAL8;
161
    st->codec->codec_type = CODEC_TYPE_VIDEO;
161
    st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
162 162
    st->codec->codec_id = CODEC_ID_SMACKVIDEO;
163 163
    st->codec->codec_tag = smk->magic;
164 164
    /* Smacker uses 100000 as internal timebase */
......
176 176
        if(smk->rates[i] & 0xFFFFFF){
177 177
            ast[i] = av_new_stream(s, 0);
178 178
            smk->indexes[i] = ast[i]->index;
179
            ast[i]->codec->codec_type = CODEC_TYPE_AUDIO;
179
            ast[i]->codec->codec_type = AVMEDIA_TYPE_AUDIO;
180 180
            if (smk->rates[i] & SMK_AUD_BINKAUD) {
181 181
                ast[i]->codec->codec_id = CODEC_ID_BINKAUDIO_RDFT;
182 182
            } else if (smk->rates[i] & SMK_AUD_USEDCT) {

Also available in: Unified diff