[FFmpeg-trac] #10777(undetermined:new): Segfault when using hardware vaapi encoding

FFmpeg trac at avcodec.org
Fri Jan 5 04:52:36 EET 2024


#10777: Segfault when using hardware vaapi encoding
-------------------------------------+-------------------------------------
             Reporter:  Patrick M    |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by Ruijing Dong):

 seems commented out this part, the issue has gone.
 ----------------------------------------------------
 diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
 index 727eff81ee..324f178cdd 100644
 --- a/libavfilter/avfiltergraph.c
 +++ b/libavfilter/avfiltergraph.c
 @@ -666,11 +666,12 @@ static int pick_format(AVFilterLink *link,
 AVFilterLink *ref)

      if (link->type == AVMEDIA_TYPE_VIDEO) {
          enum AVPixelFormat swfmt = link->format;
 +#if 0
          if (av_pix_fmt_desc_get(swfmt)->flags & AV_PIX_FMT_FLAG_HWACCEL)
 {
              av_assert1(link->hw_frames_ctx);
              swfmt = ((AVHWFramesContext *)
 link->hw_frames_ctx->data)->sw_format;
          }
 -
 +#endif
          if (!ff_fmt_is_regular_yuv(swfmt)) {
              const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(swfmt);
              /* These fields are explicitly documented as affecting YUV
 only,
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10777#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list