| OLD | NEW |
| 1 /* | 1 /* |
| 2 * AVI demuxer | 2 * AVI demuxer |
| 3 * Copyright (c) 2001 Fabrice Bellard | 3 * Copyright (c) 2001 Fabrice Bellard |
| 4 * | 4 * |
| 5 * This file is part of FFmpeg. | 5 * This file is part of FFmpeg. |
| 6 * | 6 * |
| 7 * FFmpeg is free software; you can redistribute it and/or | 7 * FFmpeg is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Lesser General Public | 8 * modify it under the terms of the GNU Lesser General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2.1 of the License, or (at your option) any later version. | 10 * version 2.1 of the License, or (at your option) any later version. |
| (...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 if(i==s->nb_streams && avi->non_interleaved) { | 686 if(i==s->nb_streams && avi->non_interleaved) { |
| 687 av_log(s, AV_LOG_WARNING, "non-interleaved AVI without index, switching
to interleaved\n"); | 687 av_log(s, AV_LOG_WARNING, "non-interleaved AVI without index, switching
to interleaved\n"); |
| 688 avi->non_interleaved=0; | 688 avi->non_interleaved=0; |
| 689 } | 689 } |
| 690 | 690 |
| 691 if(avi->non_interleaved) { | 691 if(avi->non_interleaved) { |
| 692 av_log(s, AV_LOG_INFO, "non-interleaved AVI\n"); | 692 av_log(s, AV_LOG_INFO, "non-interleaved AVI\n"); |
| 693 clean_index(s); | 693 clean_index(s); |
| 694 } | 694 } |
| 695 | 695 |
| 696 ff_metadata_conv_ctx(s, NULL, ff_avi_metadata_conv); |
| 697 |
| 696 return 0; | 698 return 0; |
| 697 } | 699 } |
| 698 | 700 |
| 699 static int read_gab2_sub(AVStream *st, AVPacket *pkt) { | 701 static int read_gab2_sub(AVStream *st, AVPacket *pkt) { |
| 700 if (!strcmp(pkt->data, "GAB2") && AV_RL16(pkt->data+5) == 2) { | 702 if (!strcmp(pkt->data, "GAB2") && AV_RL16(pkt->data+5) == 2) { |
| 701 uint8_t desc[256], *d = desc; | 703 uint8_t desc[256], *d = desc; |
| 702 uint8_t *end, *ptr = pkt->data+7; | 704 uint8_t *end, *ptr = pkt->data+7; |
| 703 unsigned int size, desc_len = bytestream_get_le32(&ptr); | 705 unsigned int size, desc_len = bytestream_get_le32(&ptr); |
| 704 int score = AVPROBE_SCORE_MAX / 2; | 706 int score = AVPROBE_SCORE_MAX / 2; |
| 705 AVIStream *ast = st->priv_data; | 707 AVIStream *ast = st->priv_data; |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1325 | 1327 |
| 1326 AVInputFormat avi_demuxer = { | 1328 AVInputFormat avi_demuxer = { |
| 1327 "avi", | 1329 "avi", |
| 1328 NULL_IF_CONFIG_SMALL("AVI format"), | 1330 NULL_IF_CONFIG_SMALL("AVI format"), |
| 1329 sizeof(AVIContext), | 1331 sizeof(AVIContext), |
| 1330 avi_probe, | 1332 avi_probe, |
| 1331 avi_read_header, | 1333 avi_read_header, |
| 1332 avi_read_packet, | 1334 avi_read_packet, |
| 1333 avi_read_close, | 1335 avi_read_close, |
| 1334 avi_read_seek, | 1336 avi_read_seek, |
| 1335 .metadata_conv = ff_avi_metadata_conv, | |
| 1336 }; | 1337 }; |
| OLD | NEW |