Hi

In my application, the output format for avcodec_decode_video2() for an RTP
H264 video stream is YUV420P. I noticed in the h264.c code that a search is
done to find the best output format. 

    if(s->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU)
        avctx->pix_fmt= PIX_FMT_VDPAU_H264;
    else
        avctx->pix_fmt= avctx->get_format(avctx, avctx->codec->pix_fmts);
    avctx->hwaccel = ff_find_hwaccel(avctx->codec->id, avctx->pix_fmt);
    avctx->chroma_sample_location = AVCHROMA_LOC_LEFT;

Is there a way to fix the output format to ensure that it will always be
YUV420P? (I am using windows XP so I don't think the VDPAU applies)

Thanks
-- 
View this message in context: 
http://www.nabble.com/Changing-output-format-for-H264-tp24631563p24631563.html
Sent from the libav-users mailing list archive at Nabble.com.

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to