]> git.sesse.net Git - ffmpeg/blobdiff - avplay.c
build: Fix Ogg demuxer dependencies
[ffmpeg] / avplay.c
index 1961f5fb8c7bd34d833d67e645747897b927373c..a42a0b48b6b344203408cff75d60eb434cae690e 100644 (file)
--- a/avplay.c
+++ b/avplay.c
@@ -1948,8 +1948,6 @@ static int audio_decode_frame(VideoState *is, double *pts_ptr)
                     av_opt_set_int(is->avr, "out_channel_layout", is->sdl_channel_layout, 0);
                     av_opt_set_int(is->avr, "out_sample_fmt",     is->sdl_sample_fmt,     0);
                     av_opt_set_int(is->avr, "out_sample_rate",    dec->sample_rate,       0);
-                    if (av_get_bytes_per_sample(dec->sample_fmt) <= 2)
-                        av_opt_set_int(is->avr, "internal_sample_fmt", AV_SAMPLE_FMT_S16P, 0);
 
                     if ((ret = avresample_open(is->avr)) < 0) {
                         fprintf(stderr, "error initializing libavresample\n");