<div dir="ltr">Hi,<div><br></div><div>I have the following code for an H264 decoder: <a href="http://pastebin.com/9gWnuBWN">http://pastebin.com/9gWnuBWN</a></div><div>It's a simple decoder, and I've seen it work with several streams I gave it.</div><div><br></div><div>However, I have a stream received from a (DJI) drone I'm trying to decode which gives bad frames, like so - <a href="http://imgur.com/a/rm8Ex">http://imgur.com/a/rm8Ex</a></div><div><br></div><div>I'm getting different frames with different parts of the image smudged, but there's always a (large) smudged part. It feels like I have only the p-frame data (on a certain area) decoded but the rest of the image is not available.</div><div>I though it might be a stream problem, so I fed the exact same stream to a different decoder (also based on ffmpeg, same version) that yielded proper decoded frames.</div><div>Can you see a problem with my code?</div><div><br></div><div>I'm using ffmpeg 20160910-09317e3</div><div><br></div><div>Thank you</div><div>Nitay</div></div>