1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-20 18:28:01 +00:00
mpv/libmpcodecs
Uoti Urpala 0321d683b4 ad_ffmpeg: return failure from init() if initial decode fails
The init() method in ad_ffmpeg tries to decode some audio data after
opening the libavcodec decoder; however the method returned success
even if this part failed. Change it to return failure instead,
indicating that the codec could not be successfully opened.

This improves behavior at least with some AAC files, for which the
libavcodec decoder can be successfully initialized but decoding
packets always fails. Before the audio would be decoded with
libavcodec, producing only a constant stream of errors; after this
commit audio decoder initialization falls back to FAAD (if available)
which works for these samples.
2011-05-03 16:52:57 +03:00
..
native Remove MEncoder 2010-11-02 04:16:55 +02:00
ad_acm.c cleanup: malloc+memset->calloc, sizeof(TYPE)->sizeof(*ptr) 2010-11-02 04:16:46 +02:00
ad_alaw.c
ad_dk3adpcm.c Use AV_RL* macros instead of typecasts where appropriate 2010-11-02 04:14:43 +02:00
ad_dmo.c options: move audio_output_channels, audio_output_format to struct 2010-11-02 04:18:07 +02:00
ad_dshow.c
ad_dvdpcm.c
ad_faad.c libfaad2:/ Remove forked internal libfaad2 copy 2011-01-31 16:00:58 +02:00
ad_ffmpeg.c ad_ffmpeg: return failure from init() if initial decode fails 2011-05-03 16:52:57 +03:00
ad_hwac3.c
ad_hwmpa.c
ad_imaadpcm.c Use AV_RL* macros instead of typecasts where appropriate 2010-11-02 04:14:43 +02:00
ad_internal.h options: move audio_output_channels, audio_output_format to struct 2010-11-02 04:18:07 +02:00
ad_liba52.c ad_liba52: Fix -ac a52 with tags other than 0x2000 or dnet 2011-04-13 03:15:05 +03:00
ad_libdca.c ad_libdca: fix assert failure on -channels >6 2010-11-02 04:18:07 +02:00
ad_libdv.c
ad_libmad.c whitespace cosmetics 2010-05-25 11:39:58 +00:00
ad_libvorbis.c
ad_mpc.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
ad_mpg123.c ad_mpeg123: Enable robust resync 2010-11-02 04:14:44 +02:00
ad_msadpcm.c
ad_pcm.c ad_pcm, codecs.conf: support 'lpcm' in mov and float in aiff 2011-04-13 03:17:05 +03:00
ad_qtaudio.c ad_qtaudio: don't run win32 loader code when it's not used 2011-05-02 00:36:20 +03:00
ad_realaud.c whitespace cosmetics 2010-05-25 11:39:58 +00:00
ad_sample.c whitespace cosmetics 2010-05-25 11:39:58 +00:00
ad_speex.c ad_speex: support decoding stream without header packet 2011-05-02 00:36:21 +03:00
ad_twin.c
ad.c mp3lib: drop internal mp3lib tree 2011-04-02 07:28:53 +03:00
ad.h Forgotten part of previous commit (extern declaration of drc_level). 2010-05-30 16:48:18 +00:00
cmmx.h
dec_audio.c core: do initial A-V sync by modifying audio stream 2010-11-13 19:46:02 +02:00
dec_audio.h core: do initial A-V sync by modifying audio stream 2010-11-13 19:46:02 +02:00
dec_teletext.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
dec_teletext.h
dec_video.c cosmetics: remove unused code, small formatting tweaks 2010-12-20 06:42:04 +02:00
dec_video.h
img_format.c Merge svn changes up to r31145 2010-05-30 15:21:18 +03:00
img_format.h video: simplify some tests with a new IMGFMT_IS_HWACCEL macro 2010-11-08 18:03:35 +02:00
mp_image.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
mp_image.h cosmetics: Drop pointless _s suffix from 'struct mp_image'. 2010-05-27 10:08:30 +00:00
mpc_info.h
pullup.c vf_*: fix pts values passed to the next filter 2011-04-24 03:55:47 +03:00
pullup.h vf_*: fix pts values passed to the next filter 2011-04-24 03:55:47 +03:00
vd_dmo.c
vd_dshow.c
vd_ffmpeg.c Merge branch 'mplayer1_changes' 2011-05-02 00:46:03 +03:00
vd_ffmpeg.h Add central init_avcodec() to avoid duplicated libavcodec init code 2010-11-02 04:15:51 +02:00
vd_hmblck.c
vd_ijpg.c Directly mark jpeg_buf_src() as void instead of using some indirection marcro. 2010-05-29 10:06:29 +00:00
vd_internal.h
vd_libdv.c
vd_libdv.h
vd_lzo.c cosmetics: Remove vim/emacs coding style hints from sources 2010-11-02 04:16:48 +02:00
vd_mpegpes.c
vd_mpng.c vd_mpng: libpng API update, use color type getter 2011-02-15 19:14:34 +02:00
vd_mtga.c Use AV_RL* macros instead of typecasts where appropriate 2010-11-02 04:14:43 +02:00
vd_null.c
vd_qtvideo.c vd_qtvideo: Do not dump image description by default 2010-12-16 04:57:18 +02:00
vd_raw.c
vd_realvid.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
vd_sgi.c Use AV_RL* macros instead of typecasts where appropriate 2010-11-02 04:14:43 +02:00
vd_theora.c Merge svn changes up to r31256 2010-05-30 16:39:41 +03:00
vd_vfw.c
vd_vfwex.c
vd_xanim.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
vd_xvid4.c cleanup: remove more warnings 2011-05-02 00:46:48 +03:00
vd.c libmpeg2: drop libmpeg2 support 2011-02-01 20:10:27 +02:00
vd.h cosmetics: Drop _s suffix from 'struct vd_functions'. 2010-05-27 09:59:15 +00:00
vf_1bpp.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_2xsai.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_ass.c sub/OSD: move some related files to sub/ 2011-01-26 20:39:05 +02:00
vf_blackframe.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
vf_bmovl.c cleanup: remove more warnings 2011-05-02 00:46:48 +03:00
vf_boxblur.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_crop.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_cropdetect.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_decimate.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_delogo.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_denoise3d.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
vf_detc.c vf_*: fix pts values passed to the next filter 2011-04-24 03:55:47 +03:00
vf_dint.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_divtc.c cleanup: remove more warnings 2011-05-02 00:46:48 +03:00
vf_down3dright.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_dsize.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_dvbscale.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_eq2.c
vf_eq.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
vf_expand.c sub/OSD: move some related files to sub/ 2011-01-26 20:39:05 +02:00
vf_field.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_fil.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_filmdint.c vf_*: fix pts values passed to the next filter 2011-04-24 03:55:47 +03:00
vf_fixpts.c vf_fixpts: Mark vf_info_t declaration const 2010-11-02 04:16:45 +02:00
vf_flip.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_format.c Merge svn changes up to r31332 2010-06-05 23:37:42 +03:00
vf_framestep.c cleanup: remove unused MEncoder-related code 2011-01-25 02:29:31 +02:00
vf_fspp.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
vf_geq.c Update libav API uses 2011-04-20 04:36:05 +03:00
vf_gradfun.c
vf_halfpack.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_harddup.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_hqdn3d.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
vf_hue.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
vf_il.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_ilpack.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_ivtc.c vf_*: fix pts values passed to the next filter 2011-04-24 03:55:47 +03:00
vf_kerndeint.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_lavc.c vf_*: fix pts values passed to the next filter 2011-04-24 03:55:47 +03:00
vf_lavcdeint.c Add central init_avcodec() to avoid duplicated libavcodec init code 2010-11-02 04:15:51 +02:00
vf_mcdeint.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
vf_mirror.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_noformat.c Merge svn changes up to r31332 2010-06-05 23:37:42 +03:00
vf_noise.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
vf_ow.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_palette.c Merge svn changes up to r31303 2010-06-02 19:12:01 +03:00
vf_perspective.c libmpcodecs/vf_*.c: Replace memalign() by av_malloc() 2011-02-15 19:12:50 +02:00
vf_phase.c vf_*: fix pts values passed to the next filter 2011-04-24 03:55:47 +03:00
vf_pp7.c cleanup: avoid various GCC warnings 2011-04-20 04:22:53 +03:00
vf_pp.c Update libav API uses 2011-04-20 04:36:05 +03:00
vf_pullup.c vf_*: fix pts values passed to the next filter 2011-04-24 03:55:47 +03:00
vf_qp.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
vf_rectangle.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_remove_logo.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_rgbtest.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_rotate.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_sab.c cleanup: remove more warnings 2011-05-02 00:46:48 +03:00
vf_scale.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
vf_scale.h
vf_screenshot.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
vf_smartblur.c cleanup: remove more warnings 2011-05-02 00:46:48 +03:00
vf_softpulldown.c vf_*: fix pts values passed to the next filter 2011-04-24 03:55:47 +03:00
vf_softskip.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_spp.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
vf_stereo3d.c vf_stereo3d: Properly support src/dst stride 2010-12-16 03:35:19 +02:00
vf_swapuv.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_telecine.c vf_*: fix pts values passed to the next filter 2011-04-24 03:55:47 +03:00
vf_test.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_tfields.c cleanup: remove more warnings 2011-05-02 00:46:48 +03:00
vf_tile.c vf_*: fix pts values passed to the next filter 2011-04-24 03:55:47 +03:00
vf_tinterlace.c vf_*: fix pts values passed to the next filter 2011-04-24 03:55:47 +03:00
vf_unsharp.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
vf_uspp.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
vf_vo.c sub/OSD: move some related files to sub/ 2011-01-26 20:39:05 +02:00
vf_yadif.c cleanup: avoid various GCC warnings 2011-04-20 04:22:53 +03:00
vf_yuvcsp.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf_yvu9.c cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf" 2010-05-29 17:20:44 +03:00
vf.c vf_*: fix pts values passed to the next filter 2011-04-24 03:55:47 +03:00
vf.h vf_*: fix pts values passed to the next filter 2011-04-24 03:55:47 +03:00
vfcap.h
vqf.h