put dv demuxing code around ifdef

Originally committed as revision 6065 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2006-08-24 08:32:52 +00:00
parent b60c04547c
commit 989ac5a685
1 changed files with 2 additions and 0 deletions

View File

@ -1039,6 +1039,7 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
case CODEC_ID_MP3ON4: case CODEC_ID_MP3ON4:
st->codec->sample_rate= 0; /* let decoder init parameters properly */ st->codec->sample_rate= 0; /* let decoder init parameters properly */
break; break;
#ifdef CONFIG_DV_DEMUXER
case CODEC_ID_DVAUDIO: case CODEC_ID_DVAUDIO:
c->dv_fctx = av_alloc_format_context(); c->dv_fctx = av_alloc_format_context();
c->dv_demux = dv_init_demux(c->dv_fctx); c->dv_demux = dv_init_demux(c->dv_fctx);
@ -1049,6 +1050,7 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
sc->dv_audio_container = 1; sc->dv_audio_container = 1;
st->codec->codec_id = CODEC_ID_PCM_S16LE; st->codec->codec_id = CODEC_ID_PCM_S16LE;
break; break;
#endif
default: default:
break; break;
} }