Revision 5f8e0227 libavformat/matroskadec.c

View differences:

libavformat/matroskadec.c
35 35
#include "matroska.h"
36 36
#include "libavcodec/mpeg4audio.h"
37 37
#include "libavutil/intfloat_readwrite.h"
38
#include "libavutil/avstring.h"
38 39
#include "libavutil/lzo.h"
39 40
#ifdef CONFIG_ZLIB
40 41
#include <zlib.h>
......
2651 2652
            st->codec->codec_id = codec_id;
2652 2653
            st->start_time = 0;
2653 2654
            if (strcmp(track->language, "und"))
2654
                strcpy(st->language, track->language);
2655
                av_strlcpy(st->language, track->language, 4);
2655 2656

  
2656 2657
            if (track->flags & MATROSKA_TRACK_DEFAULT)
2657 2658
                st->disposition |= AV_DISPOSITION_DEFAULT;

Also available in: Unified diff