<div dir="ltr">Hi all<div>I have fixed some issue with the TV Headend interface to libav. I setup a mpeg2_mmal and decode input stream with avcodec_decode_video2.</div><div>There is no error from libav, still avcodec_decode_video2 function return 0 that should mean no frame decoded, but got_frame is set to 1 and AVFrame *picture parameter also contains valid data. </div><div>However the output, if sent to the encoder drives it crazy, like it contains garbage.</div><div>The AVCodecContext *avctx is kept to default, excluded the set of the input stream width and height.</div><div>Is there anything else which is required to be initialized for this codec?</div><div>If I use software mpeg2 decoder everything works as expected</div><div>Bye</div></div>