<div dir="ltr">Hi,<div><br></div><div>I'm trying to deal with broken streams with libav. Sometimes streams can be broken due to nature of incoming network channel (UDP multicast) but i'd like to "fix them" as much as possible. I'm trying to fill broken frames with last good decoded frame. There are situations when I can do such thing and everything is ok but most of time it's not helping: libav tries to decode broken stream and add some green frames (h264 decoding) which really catch your eyes when you watch this stream after encoding.</div><div>Is it possible to change this color to black for example? Can libav while decoding set some flags to frames and mark them as broken or "green"?</div><div>It will be helpful because next I'll can replace such frames with correctly decoded which fix it.</div><div><br></div><div>Thanks</div></div>