From 3608a44b8222cfd76b8ba789e1f5ea6b7020a3e9 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Fri, 19 Apr 2013 19:43:30 +0100 Subject: libav output green/ not crashing --- rotord/libavexporter.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rotord/libavexporter.h') diff --git a/rotord/libavexporter.h b/rotord/libavexporter.h index 27bbbe5..c9984cb 100644 --- a/rotord/libavexporter.h +++ b/rotord/libavexporter.h @@ -229,7 +229,7 @@ namespace libav { { avcodec_close(st->codec); - + } //************************************************************// @@ -270,7 +270,7 @@ namespace libav { // * picture is needed too. It is then converted to the required // * output format. // if (c->pix_fmt != AV_PIX_FMT_YUV420P) { - ret = avpicture_alloc(&src_picture, AV_PIX_FMT_YUV420P, c->width, c->height); + ret = avpicture_alloc(&src_picture, AV_PIX_FMT_RGB24, c->width, c->height); if (ret < 0) { //fprintf(stderr, "Could not allocate temporary picture: %s\n", // av_err2str(ret)); @@ -396,7 +396,7 @@ namespace libav { av_free(src_picture.data[0]); av_free(dst_picture.data[0]); av_free(frame); - av_free(outPixels); + //av_free(outPixels); SIGSEV here } class exporter { -- cgit v1.2.3