]> git.sesse.net Git - ffmpeg/blobdiff - doc/examples/decode_video.c
Merge commit '932cc6496ef6ab0e589ea51d3adefe5b7d7f1e2a'
[ffmpeg] / doc / examples / decode_video.c
index 613bc5cc8826226443ccd37f6ad93403c0dc145f..4377fd49e0dc6c9f69085d808cb101d648024412 100644 (file)
@@ -74,7 +74,7 @@ static void decode(AVCodecContext *dec_ctx, AVFrame *frame, AVPacket *pkt,
 
         /* the picture is allocated by the decoder. no need to
            free it */
-        snprintf(buf, sizeof(buf), filename, dec_ctx->frame_number);
+        snprintf(buf, sizeof(buf), "%s-%d", filename, dec_ctx->frame_number);
         pgm_save(frame->data[0], frame->linesize[0],
                  frame->width, frame->height, buf);
     }