diff --git a/doc/examples/filtering_audio.c b/doc/examples/filtering_audio.c
index 6f70a8df903e3f4bdcba7aff4fb6d83e74a8f6c0..f2321063cfe1f82368df5e94ec4c7c7ad4380d1a 100644
--- a/doc/examples/filtering_audio.c
+++ b/doc/examples/filtering_audio.c
@@ -207,7 +207,7 @@ int main(int argc, char **argv)
 
             if (got_frame) {
                 /* push the audio data from decoded frame into the filtergraph */
-                if (av_buffersrc_add_frame(buffersrc_ctx, frame, 0) < 0) {
+                if (av_buffersrc_add_frame(buffersrc_ctx, frame) < 0) {
                     av_log(NULL, AV_LOG_ERROR, "Error while feeding the audio filtergraph\n");
                     break;
                 }
diff --git a/doc/examples/filtering_video.c b/doc/examples/filtering_video.c
index 660e52663f1c40328bd6e387b90ad6abd6d98548..520ccabdda36117ec7e079adc1e5246161e9289d 100644
--- a/doc/examples/filtering_video.c
+++ b/doc/examples/filtering_video.c
@@ -213,7 +213,7 @@ int main(int argc, char **argv)
                 frame->pts = av_frame_get_best_effort_timestamp(frame);
 
                 /* push the decoded frame into the filtergraph */
-                if (av_buffersrc_add_frame(buffersrc_ctx, frame, 0) < 0) {
+                if (av_buffersrc_add_frame(buffersrc_ctx, frame) < 0) {
                     av_log(NULL, AV_LOG_ERROR, "Error while feeding the filtergraph\n");
                     break;
                 }