diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-01-31 10:49:26 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-01-31 10:49:26 +0000 |
commit | 59bcc93bb188416aee294185242683c10bce5157 (patch) | |
tree | be6bd66259855c04218bb917dd6b8876273ca062 | |
parent | a9025f2ae4231df94da1063394180368913e2e32 (diff) | |
download | ffmpeg-59bcc93bb188416aee294185242683c10bce5157.tar.gz |
do not use PAL_samples_per_frame in init, to make init independant
Originally committed as revision 16902 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/mxfenc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index 9872ebdd18..02a0e54f9e 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -878,7 +878,7 @@ static int ff_audio_interleave_init(AVFormatContext *s, const int *samples_per_f int i; if (!samples_per_frame) - samples_per_frame = PAL_samples_per_frame; + return -1; for (i = 0; i < s->nb_streams; i++) { AVStream *st = s->streams[i]; @@ -961,6 +961,9 @@ static int mxf_write_header(AVFormatContext *s) sc->order = AV_RB32(sc->track_essence_element_key+12); } + if (!samples_per_frame) + samples_per_frame = PAL_samples_per_frame; + if (ff_audio_interleave_init(s, samples_per_frame) < 0) return -1; |