add xvid/flv formats, add motion plugin varients + save file, fix build bug
[goodguy/history.git] / cinelerra-5.1 / cinelerra / ffmpeg.C
index 16c6409b9653154c54c5d91d20736a2d549ad834..9b468bf4f8ea599718bb195e0e94c908b9ada180 100644 (file)
@@ -1949,7 +1949,7 @@ int FFMPEG::encode_activate()
                    (ret=avio_open(&fmt_ctx->pb, fmt_ctx->filename, AVIO_FLAG_WRITE)) < 0 ) {
                        ff_err(ret, "FFMPEG::encode_activate: err opening : %s\n",
                                fmt_ctx->filename);
-                       return 1;
+                       return -1;
                }
 
                AVDictionary *fopts = 0;
@@ -1961,7 +1961,7 @@ int FFMPEG::encode_activate()
                if( ret < 0 ) {
                        ff_err(ret, "FFMPEG::encode_activate: write header failed %s\n",
                                fmt_ctx->filename);
-                       return 1;
+                       return -1;
                }
                encoding = 1;
        }