]> git.sesse.net Git - ffmpeg/blobdiff - tests/api/api-seek-test.c
Merge commit 'e807491fc6a336e4becc0cbc981274a8fde18aba'
[ffmpeg] / tests / api / api-seek-test.c
index 4fd1e6ea045611660d624fee12fa595431dfbe31..2b32cb9e4f382f4abe03b79e4ed050b64d37e3c3 100644 (file)
@@ -145,7 +145,7 @@ static int compute_crc_of_packets(AVFormatContext *fmt_ctx, int video_stream,
         }
         av_packet_unref(&pkt);
         av_init_packet(&pkt);
-    } while ((!end_of_stream || got_frame) && (no_seeking || (fr->pts + av_frame_get_pkt_duration(fr) <= ts_end)));
+    } while ((!end_of_stream || got_frame) && (no_seeking || (fr->pts + fr->pkt_duration <= ts_end)));
 
     av_packet_unref(&pkt);
     av_freep(&byte_buffer);