comparison avidec.c @ 4210:ec95366371ba libavformat

replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_ and remove all ENABLE_ definitions.
author aurel
date Wed, 14 Jan 2009 17:19:17 +0000
parents 27d9df19f066
children de3cb095285c
comparison
equal deleted inserted replaced
4209:020395b83a14 4210:ec95366371ba
348 348
349 ast = s->streams[0]->priv_data; 349 ast = s->streams[0]->priv_data;
350 av_freep(&s->streams[0]->codec->extradata); 350 av_freep(&s->streams[0]->codec->extradata);
351 av_freep(&s->streams[0]); 351 av_freep(&s->streams[0]);
352 s->nb_streams = 0; 352 s->nb_streams = 0;
353 if (ENABLE_DV_DEMUXER) { 353 if (CONFIG_DV_DEMUXER) {
354 avi->dv_demux = dv_init_demux(s); 354 avi->dv_demux = dv_init_demux(s);
355 if (!avi->dv_demux) 355 if (!avi->dv_demux)
356 goto fail; 356 goto fail;
357 } 357 }
358 s->streams[0]->priv_data = ast; 358 s->streams[0]->priv_data = ast;
634 ByteIOContext *pb = s->pb; 634 ByteIOContext *pb = s->pb;
635 int n, d[8], size; 635 int n, d[8], size;
636 int64_t i, sync; 636 int64_t i, sync;
637 void* dstr; 637 void* dstr;
638 638
639 if (ENABLE_DV_DEMUXER && avi->dv_demux) { 639 if (CONFIG_DV_DEMUXER && avi->dv_demux) {
640 size = dv_get_packet(avi->dv_demux, pkt); 640 size = dv_get_packet(avi->dv_demux, pkt);
641 if (size >= 0) 641 if (size >= 0)
642 return size; 642 return size;
643 } 643 }
644 644
719 pkt->data = av_realloc(pkt->data, pkt->size + FF_INPUT_BUFFER_PADDING_SIZE); 719 pkt->data = av_realloc(pkt->data, pkt->size + FF_INPUT_BUFFER_PADDING_SIZE);
720 if(pkt->data) 720 if(pkt->data)
721 memcpy(pkt->data + pkt->size - 4*256, ast->pal, 4*256); 721 memcpy(pkt->data + pkt->size - 4*256, ast->pal, 4*256);
722 } 722 }
723 723
724 if (ENABLE_DV_DEMUXER && avi->dv_demux) { 724 if (CONFIG_DV_DEMUXER && avi->dv_demux) {
725 dstr = pkt->destruct; 725 dstr = pkt->destruct;
726 size = dv_produce_packet(avi->dv_demux, pkt, 726 size = dv_produce_packet(avi->dv_demux, pkt,
727 pkt->data, pkt->size); 727 pkt->data, pkt->size);
728 pkt->destruct = dstr; 728 pkt->destruct = dstr;
729 pkt->flags |= PKT_FLAG_KEY; 729 pkt->flags |= PKT_FLAG_KEY;
1010 pos = st->index_entries[index].pos; 1010 pos = st->index_entries[index].pos;
1011 timestamp = st->index_entries[index].timestamp; 1011 timestamp = st->index_entries[index].timestamp;
1012 1012
1013 // av_log(NULL, AV_LOG_DEBUG, "XX %"PRId64" %d %"PRId64"\n", timestamp, index, st->index_entries[index].timestamp); 1013 // av_log(NULL, AV_LOG_DEBUG, "XX %"PRId64" %d %"PRId64"\n", timestamp, index, st->index_entries[index].timestamp);
1014 1014
1015 if (ENABLE_DV_DEMUXER && avi->dv_demux) { 1015 if (CONFIG_DV_DEMUXER && avi->dv_demux) {
1016 /* One and only one real stream for DV in AVI, and it has video */ 1016 /* One and only one real stream for DV in AVI, and it has video */
1017 /* offsets. Calling with other stream indexes should have failed */ 1017 /* offsets. Calling with other stream indexes should have failed */
1018 /* the av_index_search_timestamp call above. */ 1018 /* the av_index_search_timestamp call above. */
1019 assert(stream_index == 0); 1019 assert(stream_index == 0);
1020 1020