[FFmpeg-trac] #7412(undetermined:new): [ffmpeg-qsv][hevc] some cases decode failed on iHD driver.

FFmpeg trac at avcodec.org
Tue Sep 11 04:24:43 EEST 2018


#7412: [ffmpeg-qsv][hevc] some cases decode failed on iHD driver.
-------------------------------------+-------------------------------------
             Reporter:               |                    Owner:
  zhuqingliang                       |                   Status:  new
                 Type:  defect       |                Component:
             Priority:  normal       |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:  qsv hevc     |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by fulinjie):

 I tried the attached clip only and find something about this issue.

 ff_qsv_profile_to_mfx will return directly if the profile info can not be
 found, thus causing the invalid video parameters issues.

 If set profile to FF_PROFILE_HEVC_MAIN when the profile is missing or
 cannot be found, the attached clip can be decoded successfully.




 {{{
  libavcodec/qsv.c | 4 ++++
  1 file changed, 4 insertions(+)

 diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c
 index bb0d79588c..f0ccd5d294 100644
 --- a/libavcodec/qsv.c
 +++ b/libavcodec/qsv.c
 @@ -73,7 +73,11 @@ int ff_qsv_profile_to_mfx(enum AVCodecID codec_id, int
 profile)
          return MFX_PROFILE_UNKNOWN;
      switch (codec_id) {
      case AV_CODEC_ID_H264:
 +        return profile;
      case AV_CODEC_ID_HEVC:
 +        if (profile != FF_PROFILE_HEVC_MAIN && profile !=
 FF_PROFILE_HEVC_MAIN_10 &&
 +            profile != FF_PROFILE_HEVC_MAIN_STILL_PICTURE && profile !=
 FF_PROFILE_HEVC_REXT)
 +            profile = FF_PROFILE_HEVC_MAIN;
          return profile;
      case AV_CODEC_ID_VC1:
          return 4 * profile + 1;

 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7412#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list