Browse Source

avconv: pass the hwaccel frames context to the decoder

tags/n3.3
Anton Khirnov 9 years ago
parent
commit
232399e3ee
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      avconv.c

+ 7
- 0
avconv.c View File

@@ -1616,6 +1616,13 @@ static enum AVPixelFormat get_format(AVCodecContext *s, const enum AVPixelFormat
}
continue;
}

if (ist->hw_frames_ctx) {
s->hw_frames_ctx = av_buffer_ref(ist->hw_frames_ctx);
if (!s->hw_frames_ctx)
return AV_PIX_FMT_NONE;
}

ist->active_hwaccel_id = hwaccel->id;
ist->hwaccel_pix_fmt = *p;
break;


Loading…
Cancel
Save