<div dir="auto">The reason is that this is what I have found in the current code (not made by me). If you believe the deprecated api could be buggy with modern codec, I will refactor the code and check if it works better. <div dir="auto">Thanks </div></div><div class="gmail_extra"><br><div class="gmail_quote">Il 11 Gen 2017 18:40, "Blake Senftner" <<a href="mailto:bsenftner@earthlink.net">bsenftner@earthlink.net</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is there a reason you are working with the old API?<br>
<br>
Here’s the new API you should be using:<br>
<br>
        <a href="http://ffmpeg.org/doxygen/trunk/group__lavc__encdec.html" rel="noreferrer" target="_blank">http://ffmpeg.org/doxygen/<wbr>trunk/group__lavc__encdec.html</a><br>
<br>
Sincerely,<br>
-Blake Senftner<br>
grumpy innovator<br>
<br>
> On Jan 11, 2017, at 8:55 AM, Menion <<a href="mailto:menion@gmail.com">menion@gmail.com</a>> wrote:<br>
><br>
> Hi all<br>
> 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.<br>
> 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.<br>
> However the output, if sent to the encoder drives it crazy, like it contains garbage.<br>
> The AVCodecContext *avctx is kept to default, excluded the set of the input stream width and height.<br>
> Is there anything else which is required to be initialized for this codec?<br>
> If I use software mpeg2 decoder everything works as expected<br>
> Bye<br>
> ______________________________<wbr>_________________<br>
> Libav-user mailing list<br>
> <a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
> <a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/<wbr>listinfo/libav-user</a><br>
<br>
______________________________<wbr>_________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/<wbr>listinfo/libav-user</a><br>
</blockquote></div></div>