1. 07 8月, 2019 1 次提交
  2. 06 8月, 2019 6 次提交
  3. 05 8月, 2019 22 次提交
  4. 04 8月, 2019 3 次提交
    • S
      ad97be9f
    • S
      avcodec/h263dec: fix hwaccel decoding · 39a5c0ac
      Stefan Schoenefeld 提交于
      Recently we encountered an issue when decoding a h.263 file:
      
      FFmpeg will freeze when decoding h.263 video with NVDEC. Turns out this is not directly related to NVDEC but is a problem that shows with several other HW decoders like VDPAU, though the exact kind of error is different (either error messages or freezing[1]). The root cause is that ff_thread_finish_setup() is called twice per frame from ff_h263_decode_frame(). This is not supported by ff_thread_finish_setup() and specifically checked for and warned against in the functions code. The issue is also specific to hw accelerated decoding only as the second call to ff_thread_finish_setup() is only issued when hw acceleration is on. The fix is simple: add a check that the first call is only send when hw acceleration is off, and the second call only when hw acceleration is on (see attached patch). This works fine as far as I was able to test with vdpau and nvdec/nvcuvid hw decoding. The patch also adds NVDEC to the hw config list if available.
      
      I also noticed a secondary issue when browsing through the code which is that, according to documentation, ff_thread_finish_setup() should only be called if the codec implements update_thread_context(), which h263dec does not. The patch does not address this and I'm not sure any action needs to be taken here at all.
      
      [1] This is depending on whether or not the hw decoder sets the  HWACCEL_CAPS_ASYNC_SAFE flag
      Signed-off-by: NTimo Rothenpieler <timo@rothenpieler.org>
      39a5c0ac
    • M
      avcodec/hnm4video: Forward errors of decode_interframe_v4() · 9af8ce75
      Michael Niedermayer 提交于
      Fixes: Timeout (108sec -> 160ms)
      Fixes: 15570/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HNM4_VIDEO_fuzzer-5085482213441536
      Reviewed-by: NTomas Härdin <tjoppen@acc.umu.se>
      Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpegSigned-off-by: NMichael Niedermayer <michael@niedermayer.cc>
      9af8ce75
  5. 03 8月, 2019 8 次提交