Revision bfc7f165

View differences:

libavformat/raw.c
66 66
            av_set_pts_info(st, 64, ap->time_base.num, ap->time_base.den);
67 67
            st->codec.width = ap->width;
68 68
            st->codec.height = ap->height;
69
	    st->codec.pix_fmt = ap->pix_fmt;
69
            st->codec.pix_fmt = ap->pix_fmt;
70
            if(st->codec.pix_fmt == PIX_FMT_NONE)
71
                st->codec.pix_fmt= PIX_FMT_YUV420P;
70 72
            break;
71 73
        default:
72 74
            return -1;
......
642 644
    raw_read_header,
643 645
    rawvideo_read_packet,
644 646
    raw_read_close,
645
    .extensions = "yuv",
647
    .extensions = "yuv,cif,qcif",
646 648
    .value = CODEC_ID_RAWVIDEO,
647 649
};
648 650

  

Also available in: Unified diff