History

tests/api: use AVFrame.duration instead of AVFrame.pkt_duration

Anton Khirnov committed 4 years ago

Commit 9c0401b1 parent de3a1352 files · +2 −2Browse files

Showing the changes to tests/api (2 of 2 files). Show all

Unified · Split

2 files
  1. tests/api/api-h264-test.c +1 −1
  2. tests/api/api-seek-test.c +1 −1
tests/api/api-h264-test.c+1−1
@@ -154,7 +154,7 @@ static int video_decode_example(const char *input_filename) · 153 unmodified lines
154 return number_of_written_bytes;154 return number_of_written_bytes;
155 }155 }
156 printf("%d, %s, %s, %8"PRId64", %8d, 0x%08"PRIx32"\n", video_stream,156 printf("%d, %s, %s, %8"PRId64", %8d, 0x%08"PRIx32"\n", video_stream,
157 av_ts2str(fr->pts), av_ts2str(fr->pkt_dts), fr->pkt_duration,157 av_ts2str(fr->pts), av_ts2str(fr->pkt_dts), fr->duration,
158 number_of_written_bytes, av_adler32_update(0, (const uint8_t*)byte_buffer, number_of_written_bytes));158 number_of_written_bytes, av_adler32_update(0, (const uint8_t*)byte_buffer, number_of_written_bytes));
159 159
160 av_frame_unref(fr);160 av_frame_unref(fr);
tests/api/api-seek-test.c+1−1
@@ -156,7 +156,7 @@ static int compute_crc_of_packets(AVFormatContext *fmt_ctx, int video_stream, · 155 unmodified lines
156 }156 }
157 av_frame_unref(fr);157 av_frame_unref(fr);
158 }158 }
159 } while (result >= 0 && (no_seeking || (fr->pts + fr->pkt_duration <= ts_end)));159 } while (result >= 0 && (no_seeking || (fr->pts + fr->duration <= ts_end)));
160 160
161finish:161finish:
162 av_freep(&byte_buffer);162 av_freep(&byte_buffer);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t