comparison utils.c @ 4179:c32a783ff374 libavformat

Add a second metadata compatibility layer, so that metadata that gets demuxed with new API is automatically converted to the old API, allowing old applications to stay functional.
author aurel
date Thu, 08 Jan 2009 23:24:51 +0000
parents fdadd576d584
children 17a8a3696ee1
comparison
equal deleted inserted replaced
4178:84da7f1e6901 4179:c32a783ff374
483 } 483 }
484 484
485 if (pb && !ic->data_offset) 485 if (pb && !ic->data_offset)
486 ic->data_offset = url_ftell(ic->pb); 486 ic->data_offset = url_ftell(ic->pb);
487 487
488 #if LIBAVFORMAT_VERSION_MAJOR < 53
489 ff_metadata_demux_compat(ic);
490 #endif
491
488 *ic_ptr = ic; 492 *ic_ptr = ic;
489 return 0; 493 return 0;
490 fail: 494 fail:
491 if (ic) { 495 if (ic) {
492 int i; 496 int i;