]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/tee.c
libavcodec/jpeg2000dec.c Fixed WRITE_FRAME and tile co-ordinates:
[ffmpeg] / libavformat / tee.c
index 56669d9d8e4f8d088607968781a0010a5c0d2c7f..c5c59975e6b43f79b0319c00bfa57c86b4bbf5ae 100644 (file)
@@ -295,7 +295,7 @@ static int open_slave(AVFormatContext *avf, char *slave, TeeSlave *tee_slave)
             goto end;
     }
 
-    ret = ff_format_output_open(avf2, filename, NULL);
+    ret = ff_format_output_open(avf2, filename, &options);
     if (ret < 0) {
         av_log(avf, AV_LOG_ERROR, "Slave '%s': error opening: %s\n", slave,
                av_err2str(ret));
@@ -564,7 +564,6 @@ static int tee_write_packet(AVFormatContext *avf, AVPacket *pkt)
         if (s2 < 0)
             continue;
 
-        memset(&pkt2, 0, sizeof(AVPacket));
         if ((ret = av_packet_ref(&pkt2, pkt)) < 0)
             if (!ret_all) {
                 ret_all = ret;