Commit 03be844e authored by bcoudurier's avatar bcoudurier

do not use PAL_samples_per_frame in init, to make init independant

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16902 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a66cf996
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment