Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
frame->format);
if (!picref)
return NULL;
frame->format);
if (!picref)
return NULL;
- avfilter_copy_frame_props(picref, frame);
+ if (avfilter_copy_frame_props(picref, frame) < 0) {
+ picref->buf->data[0] = NULL;
+ avfilter_unref_bufferp(&picref);
+ }
av_frame_get_channel_layout(frame));
if (!samplesref)
return NULL;
av_frame_get_channel_layout(frame));
if (!samplesref)
return NULL;
- avfilter_copy_frame_props(samplesref, frame);
+ if (avfilter_copy_frame_props(samplesref, frame) < 0) {
+ samplesref->buf->data[0] = NULL;
+ avfilter_unref_bufferp(&samplesref);
+ }