Ticket #36830: patch-src-profiles.c.diff
File patch-src-profiles.c.diff, 1.2 KB (added by todmorrison (Tod Morrison), 12 years ago) |
---|
-
src/profiles.c
old new 204 204 205 205 for (i = 0; i < ctx->nb_streams; i++) 206 206 { 207 #if LIBAVFORMAT_BUILD < 4621 207 208 if (audio_stream == -1 && 208 209 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 209 214 { 210 215 audio_stream = i; 211 216 continue; 212 217 } 218 #if LIBAVFORMAT_BUILD < 4621 213 219 else if (video_stream == -1 && 214 220 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 215 225 { 216 226 video_stream = i; 217 227 continue; … … 280 290 if (!dlna->inited) 281 291 dlna = dlna_init (); 282 292 283 if (av _open_input_file (&ctx, filename, NULL, 0, NULL) != 0)293 if (avformat_open_input (&ctx, filename, NULL, NULL) != 0) 284 294 { 285 295 if (dlna->verbosity) 286 296 fprintf (stderr, "can't open file: %s\n", filename); … … 334 344 p = p->next; 335 345 } 336 346 337 av _close_input_file(ctx);347 avformat_close_input (ctx); 338 348 free (codecs); 339 349 return profile; 340 350 }