El 16/07/16 a las 23:10, Michael Niedermayer escribiĆ³:
Set needed fields in st->codec

Fixes Ticket5684

Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc>
---
@@ -434,6 +434,8 @@ static void open_video(AVFormatContext *oc, AVCodec *codec, 
OutputStream *ost, A
          fprintf(stderr, "Could not copy the stream parameters\n");
          exit(1);
      }
+    ost->st->codec->ticks_per_frame = c->ticks_per_frame;
+    ost->st->codec->time_base       = c->time_base;
  }
I can verify it fixes the ticket, but creates warnings of AVStream::codec being deprecated.

--
Gonzalo GarramuƱo
ggarr...@gmail.com

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to