Ticket #10169: 300-fix-missing-symbols.patch

File 300-fix-missing-symbols.patch, 793 bytes (added by Sasan Jalali <sasanjj@…>, 5 years ago)

Patch for libdlna to fix some missing symbols from newer libavformat versions. Source: http://code.google.com/p/ffmpegthumbnailer/issues/detail?id=84

  • (a) a/src/profiles.c.orig vs. (b) b/src/profiles.c

    a b  
    204204 
    205205  for (i = 0; i < ctx->nb_streams; i++) 
    206206  { 
     207#if LIBAVFORMAT_BUILD < 4621 
    207208    if (audio_stream == -1 && 
    208209        ctx->streams[i]->codec->codec_type == CODEC_TYPE_AUDIO) 
     210#else 
     211    if (audio_stream == -1 && 
     212        ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO) 
     213#endif  
    209214    { 
    210215      audio_stream = i; 
    211216      continue; 
    212217    } 
     218#if LIBAVFORMAT_BUILD < 4621 
    213219    else if (video_stream == -1 && 
    214220             ctx->streams[i]->codec->codec_type == CODEC_TYPE_VIDEO) 
     221#else 
     222    else if (video_stream == -1 && 
     223             ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO) 
     224#endif 
    215225    { 
    216226      video_stream = i; 
    217227      continue;