summaryrefslogtreecommitdiff
path: root/rotord/libavexporter.h
diff options
context:
space:
mode:
authorTim Redfern <tim@herge.(none)>2013-04-19 19:43:30 +0100
committerTim Redfern <tim@herge.(none)>2013-04-19 19:43:30 +0100
commit3608a44b8222cfd76b8ba789e1f5ea6b7020a3e9 (patch)
tree9b05ce670e0ac5fb43fbd078c1af41d93fcbe28f /rotord/libavexporter.h
parent47b733bbc93e565d840596d4fbc2d5d5f3d18dd2 (diff)
libav output green/ not crashing
Diffstat (limited to 'rotord/libavexporter.h')
-rw-r--r--rotord/libavexporter.h6
1 files changed, 3 insertions, 3 deletions
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 {