Browse Source

nellymoserenc: set AVCodecContext.coded_frame

tags/n0.11
Justin Ruggles 13 years ago
parent
commit
928672f1f1
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      libavcodec/nellymoserenc.c

+ 7
- 0
libavcodec/nellymoserenc.c View File

@@ -137,6 +137,7 @@ static av_cold int encode_end(AVCodecContext *avctx)
av_free(s->opt);
av_free(s->path);
}
av_freep(&avctx->coded_frame);

return 0;
}
@@ -179,6 +180,12 @@ static av_cold int encode_init(AVCodecContext *avctx)
}
}

avctx->coded_frame = avcodec_alloc_frame();
if (!avctx->coded_frame) {
ret = AVERROR(ENOMEM);
goto error;
}

return 0;
error:
encode_end(avctx);


Loading…
Cancel
Save