Browse Source

Merge commit '555000c7d5c1e13043a948ebc48d2939b0ba6536'

* commit '555000c7d5c1e13043a948ebc48d2939b0ba6536':
  h264: check that DPB is allocated before accessing it in flush_dpb()
  vf_hqdn3d: fix uninitialized variable use
  vf_gradfun: fix uninitialized variable use

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.0
Michael Niedermayer 12 years ago
parent
commit
8bcebf9e4a
3 changed files with 7 additions and 4 deletions
  1. +3
    -2
      libavcodec/h264.c
  2. +2
    -1
      libavfilter/vf_gradfun.c
  3. +2
    -1
      libavfilter/vf_hqdn3d.c

+ 3
- 2
libavcodec/h264.c View File

@@ -2685,8 +2685,9 @@ static void flush_dpb(AVCodecContext *avctx)

flush_change(h);

for (i = 0; i < MAX_PICTURE_COUNT; i++)
unref_picture(h, &h->DPB[i]);
if (h->DPB)
for (i = 0; i < MAX_PICTURE_COUNT; i++)
unref_picture(h, &h->DPB[i]);
h->cur_pic_ptr = NULL;
unref_picture(h, &h->cur_pic);



+ 2
- 1
libavfilter/vf_gradfun.c View File

@@ -202,12 +202,13 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
GradFunContext *gf = inlink->dst->priv;
AVFilterLink *outlink = inlink->dst->outputs[0];
AVFrame *out;
int p, direct = 0;
int p, direct;

if (av_frame_is_writable(in)) {
direct = 1;
out = in;
} else {
direct = 0;
out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
if (!out) {
av_frame_free(&in);


+ 2
- 1
libavfilter/vf_hqdn3d.c View File

@@ -310,12 +310,13 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
AVFilterLink *outlink = inlink->dst->outputs[0];

AVFrame *out;
int direct = 0, c;
int direct, c;

if (av_frame_is_writable(in)) {
direct = 1;
out = in;
} else {
direct = 0;
out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
if (!out) {
av_frame_free(&in);


Loading…
Cancel
Save