On Thu, Jul 24, 2014 at 3:55 AM, Jan Gerber <j...@v2v.cc> wrote:
> ---
>  libavformat/mpegts.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
> index 5d8b08c..fa784ac 100644
> --- a/libavformat/mpegts.c
> +++ b/libavformat/mpegts.c
> @@ -29,6 +29,7 @@
> #include "libavcodec/bytestream.h"
> #include "libavcodec/get_bits.h"
> #include "avformat.h"
>+#include "avlanguage.h"
> #include "mpegts.h"
> #include "internal.h"
> #include "avio_internal.h"
> @@ -1414,7 +1415,9 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, 
> AVStream *st, int stream_type
>         }
>         if (i) {
>             language[i - 1] = 0;
> -            av_dict_set(&st->metadata, "language", language, 0);
> +            if (av_islang(language)) {
> +                av_dict_set(&st->metadata, "language", language, 0);
> +            }
>          }
>          break;
>     case 0x05: /* registration descriptor */

also this one needs review
-- 
Vittorio
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to