Hi,
I'm trying to decode a stream with avcodec and its "low resolution" option,
the library successfully decodes but it ignores the lowres request.
Here's my very simple code:
------------------------------------------------------------------------------------------------------------
bool av_opened = false;
AVFrame* av_frame = avcodec_alloc_frame();
AVCodecContext* av_decoder_context = avcodec_alloc_context();
......
av_decoder_context->lowres = 1;
if (!av_opened)
{
if ( avcodec_open(av_decoder_context, av_codec) == 0 )
av_opened = true;
}
if (!av_opened)
avcodec_decode_video2(av_decoder_context, av_frame,
&got_picture, &packet);
.....
-------------------------------------------------------------------------------------------------------------
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user