[FFmpeg-cvslog] avformat/utils: fix a codecpar non use

James Almer git at videolan.org
Sat Aug 27 17:22:26 EEST 2016


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Aug 26 15:28:21 2016 -0300| [dc7e5adbc0867956102afc85e2b59b878e5a27ed] | committer: James Almer

avformat/utils: fix a codecpar non use

Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: James Almer <jamrial at gmail.com>

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

 libavformat/utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index ba08792..7d23c4a 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -617,7 +617,7 @@ static void force_codec_ids(AVFormatContext *s, AVStream *st)
         break;
     case AVMEDIA_TYPE_DATA:
         if (s->data_codec_id)
-            st->codec->codec_id = s->data_codec_id;
+            st->codecpar->codec_id = s->data_codec_id;
         break;
     }
 }



More information about the ffmpeg-cvslog mailing list