avfilter/f_select: use AVFrame metadata accessor function
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 11 Apr 2013 16:30:19 +0000 (18:30 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 11 Apr 2013 16:33:24 +0000 (18:33 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/f_select.c

index b34196d..786b5e1 100644 (file)
@@ -278,7 +278,7 @@ static int select_frame(AVFilterContext *ctx, AVFrame *frame)
             select->var_values[VAR_SCENE] = get_scene_score(ctx, frame);
             // TODO: document metadata
             snprintf(buf, sizeof(buf), "%f", select->var_values[VAR_SCENE]);
-            av_dict_set(&frame->metadata, "lavfi.scene_score", buf, 0);
+            av_dict_set(avpriv_frame_get_metadatap(frame), "lavfi.scene_score", buf, 0);
         }
 #endif
         break;