Revision 8787d837 libavcodec/sp5xdec.c

View differences:

libavcodec/sp5xdec.c
72 72
    memcpy(recoded+j, &sp5x_data_sos[0], sizeof(sp5x_data_sos));
73 73
    j += sizeof(sp5x_data_sos);
74 74

  
75
    if(avctx->codec_id==CODEC_ID_AMV)
76
        for (i = 2; i < buf_size-2 && j < buf_size+1024-2; i++)
77
            recoded[j++] = buf[i];
78
    else
75 79
    for (i = 14; i < buf_size && j < buf_size+1024-2; i++)
76 80
    {
77 81
        recoded[j++] = buf[i];
......
194 198
    CODEC_CAP_DR1,
195 199
    NULL
196 200
};
201

  
202
AVCodec amv_decoder = {
203
    "amv",
204
    CODEC_TYPE_VIDEO,
205
    CODEC_ID_AMV,
206
    sizeof(MJpegDecodeContext),
207
    ff_mjpeg_decode_init,
208
    NULL,
209
    ff_mjpeg_decode_end,
210
    sp5x_decode_frame,
211
    CODEC_CAP_DR1
212
};

Also available in: Unified diff