This happens at least with h264 (I have not tested other codecs).
When corrupted frames output is set, any corrupted
frame is flagged but that information is lost when
av_frame_ref is used on output.
The other local only h264 fix would be to copy flags
in h264dec output_frame().
Francois
---
libavutil/frame.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavutil/frame.c b/libavutil/frame.c
index 9cd5f9a..e75236c 100644
--- a/libavutil/frame.c
+++ b/libavutil/frame.c
@@ -205,6 +205,7 @@ int av_frame_ref(AVFrame *dst, const AVFrame *src)
int i, ret = 0;
dst->format = src->format;
+ dst->flags = src->flags;
dst->width = src->width;
dst->height = src->height;
dst->channel_layout = src->channel_layout;
--
2.9.3
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel