[FFmpeg-cvslog] ffmpeg_opt: fix attachment streams

Michael Niedermayer git at videolan.org
Sun Jun 1 17:36:58 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jun  1 16:36:43 2014 +0200| [229022e788aa63cd73a50aa9a3112ca2fcbda9f8] | committer: Michael Niedermayer

ffmpeg_opt: fix attachment streams

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=229022e788aa63cd73a50aa9a3112ca2fcbda9f8
---

 ffmpeg_opt.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index 3cc09ec..807d54a 100644
--- a/ffmpeg_opt.c
+++ b/ffmpeg_opt.c
@@ -1949,8 +1949,8 @@ loop_end:
         ost->stream_copy               = 0;
         ost->attachment_filename       = o->attachments[i];
         ost->finished                  = 1;
-        ost->st->codec->extradata      = attachment;
-        ost->st->codec->extradata_size = len;
+        ost->enc_ctx->extradata      = attachment;
+        ost->enc_ctx->extradata_size = len;
 
         p = strrchr(o->attachments[i], '/');
         av_dict_set(&ost->st->metadata, "filename", (p && *p) ? p + 1 : o->attachments[i], AV_DICT_DONT_OVERWRITE);



More information about the ffmpeg-cvslog mailing list