summaryrefslogtreecommitdiff
path: root/libavcodec/libschroedingerdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/libschroedingerdec.c')
-rw-r--r--libavcodec/libschroedingerdec.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libavcodec/libschroedingerdec.c b/libavcodec/libschroedingerdec.c
index 02ee24bb92..53ded57ba4 100644
--- a/libavcodec/libschroedingerdec.c
+++ b/libavcodec/libschroedingerdec.c
@@ -256,11 +256,8 @@ static int libschroedinger_decode_frame(AVCodecContext *avccontext,
case SCHRO_DECODER_NEED_FRAME:
/* Decoder needs a frame - create one and push it in. */
-
- frame = schro_frame_new_and_alloc(NULL,
- p_schro_params->frame_format,
- format->width,
- format->height);
+ frame = ff_create_schro_frame(avccontext,
+ p_schro_params->frame_format);
schro_decoder_add_output_picture(decoder, frame);
break;