summaryrefslogtreecommitdiff
path: root/libavcodec/hevc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-07-18 22:59:03 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-07-18 22:59:03 +0200
commitffa0b510cd15c1ef164cf376cf90761fae92d35d (patch)
tree8ecf66c47edc8b0a1bca71a60c7a5d288c0dfc75 /libavcodec/hevc.c
parentd249e6828e8a84758010ec020a84dfcd156b585e (diff)
avcodec/hevc: fix pict_type
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r--libavcodec/hevc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index d466aa6253..7c18640887 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -2584,7 +2584,6 @@ static int hevc_frame_start(HEVCContext *s)
int pic_size_in_ctb = ((s->sps->width >> s->sps->log2_min_cb_size) + 1) *
((s->sps->height >> s->sps->log2_min_cb_size) + 1);
int ret;
- AVFrame *cur_frame;
memset(s->horizontal_bs, 0, 2 * s->bs_width * (s->bs_height + 1));
memset(s->vertical_bs, 0, 2 * s->bs_width * (s->bs_height + 1));
@@ -2614,8 +2613,7 @@ static int hevc_frame_start(HEVCContext *s)
if (ret < 0)
goto fail;
- cur_frame = s->sps->sao_enabled ? s->sao_frame : s->frame;
- cur_frame->pict_type = 3 - s->sh.slice_type;
+ s->frame->pict_type = 3 - s->sh.slice_type;
av_frame_unref(s->output_frame);
ret = ff_hevc_output_frame(s, s->output_frame, 0);