A flush packet is documented as an AVPacket with data and size set to 0. Reported-By: Bernd Pfrommer --- libavcodec/utils.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index c9ae19b..aee7ea2 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1551,6 +1551,9 @@ static int apply_param_change(AVCodecContext *avctx, AVPacket *avpkt) const uint8_t *data; uint32_t flags; + if (!avpkt->data) + return 0; + data = av_packet_get_side_data(avpkt, AV_PKT_DATA_PARAM_CHANGE, &size); if (!data) return 0; -- 2.3.2 _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel