Mercurial > libavformat.hg
changeset 133:31f0dda651f8 libavformat
* added s263 (mapped to h263 - 3gp files)
* less strict header detection - also do not call exit when it's not found.
author | kabi |
---|---|
date | Mon, 12 May 2003 17:58:52 +0000 |
parents | 9ca36221ae23 |
children | 5cda954c6e9a |
files | mov.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mov.c Mon May 12 15:39:38 2003 +0000 +++ b/mov.c Mon May 12 17:58:52 2003 +0000 @@ -89,6 +89,7 @@ { CODEC_ID_MPEG4, MKTAG('D', 'I', 'V', 'X') }, /* OpenDiVX *//* sample files at http://heroinewarrior.com/xmovie.php3 use this tag */ /* { CODEC_ID_, MKTAG('I', 'V', '5', '0') }, *//* Indeo 5.0 */ { CODEC_ID_H263, MKTAG('h', '2', '6', '3') }, /* H263 */ + { CODEC_ID_H263, MKTAG('s', '2', '6', '3') }, /* H263 ?? works */ { CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'c', ' ') }, /* DV NTSC */ { CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'c', 'p') }, /* DV PAL */ /* { CODEC_ID_DVVIDEO, MKTAG('A', 'V', 'd', 'v') }, *//* AVID dv */ @@ -1288,9 +1289,10 @@ /* check MOV header */ err = mov_read_default(mov, pb, atom); - if(err<0 || (!mov->found_moov || !mov->found_mdat)) { - puts("header not found !!!"); - exit(1); + if (err<0 || (!mov->found_moov && !mov->found_mdat)) { + fprintf(stderr, "mov: header not found !!! (err:%d, moov:%d, mdat:%d) pos:%Ld\n", + err, mov->found_moov, mov->found_mdat, url_ftell(pb)); + return -1; } #ifdef DEBUG printf("on_parse_exit_offset=%d\n", (int) url_ftell(pb));