Revision 2940b38e libavformat/ffmdec.c

View differences:

libavformat/ffmdec.c
232 232
{
233 233
    FFMContext *ffm = s->priv_data;
234 234
    AVStream *st;
235
    FFMStream *fst;
236 235
    ByteIOContext *pb = s->pb;
237 236
    AVCodecContext *codec;
238 237
    int i, nb_streams;
......
263 262
        st = av_new_stream(s, 0);
264 263
        if (!st)
265 264
            goto fail;
266
        fst = av_mallocz(sizeof(FFMStream));
267
        if (!fst)
268
            goto fail;
269 265
        s->streams[i] = st;
270 266

  
271 267
        av_set_pts_info(st, 64, 1, 1000000);
272 268

  
273
        st->priv_data = fst;
274

  
275 269
        codec = st->codec;
276 270
        /* generic info */
277 271
        codec->codec_id = get_be32(pb);

Also available in: Unified diff