projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
200f41a
)
check if we found an audio track before initializing the audio stream
author
Aurelien Jacobs
<aurel@gnuage.org>
Thu, 18 Oct 2007 23:42:54 +0000
(23:42 +0000)
committer
Aurelien Jacobs
<aurel@gnuage.org>
Thu, 18 Oct 2007 23:42:54 +0000
(23:42 +0000)
Originally committed as revision 10804 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/electronicarts.c
patch
|
blob
|
history
diff --git
a/libavformat/electronicarts.c
b/libavformat/electronicarts.c
index fadf2fbaa418067dcc2c532376c967748c5e1bbf..3d69a5681a804597509e1f698db0bab9e23d09d0 100644
(file)
--- a/
libavformat/electronicarts.c
+++ b/
libavformat/electronicarts.c
@@
-257,6
+257,7
@@
static int ea_read_header(AVFormatContext *s,
st->codec->time_base = ea->time_base;
}
+ if (ea->audio_codec) {
/* initialize the audio decoder stream */
st = av_new_stream(s, 0);
if (!st)
@@
-274,6
+275,7
@@
static int ea_read_header(AVFormatContext *s,
ea->audio_stream_index = st->index;
ea->audio_frame_counter = 0;
+ }
return 1;
}