mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/mpeg4_unpack_bframes_bsf: Check av_packet_from_data() return value
Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
8c997b3d3d
commit
1c46e53dcc
@ -126,7 +126,11 @@ static int mpeg4_unpack_bframes_filter(AVBSFContext *ctx, AVPacket *out)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
av_packet_from_data(out, s->b_frame_buf, s->b_frame_buf_size);
|
ret = av_packet_from_data(out, s->b_frame_buf, s->b_frame_buf_size);
|
||||||
|
if (ret < 0) {
|
||||||
|
av_packet_free(&in);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
if (in->size <= MAX_NVOP_SIZE) {
|
if (in->size <= MAX_NVOP_SIZE) {
|
||||||
/* N-VOP */
|
/* N-VOP */
|
||||||
av_log(ctx, AV_LOG_DEBUG, "Skipping N-VOP.\n");
|
av_log(ctx, AV_LOG_DEBUG, "Skipping N-VOP.\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user