|
1 | | -From a78737dbf420343099b8151d6a23262e98fbddef Mon Sep 17 00:00:00 2001 |
| 1 | +From 690495b9eab397ad2a3441974d903ae2e3aa425c Mon Sep 17 00:00:00 2001 |
2 | 2 | From: qianlongxu <qianlongxu@gmail.com> |
3 | | -Date: Wed, 29 May 2024 11:43:03 +0800 |
4 | | -Subject: [PATCH 18] bluray open and find the right m2ts, then read\seek it |
| 3 | +Date: Wed, 29 May 2024 15:27:51 +0800 |
| 4 | +Subject: [PATCH 18] bluray open and find the right m2ts, then read\seek it |
5 | 5 | direactly instread of bluray logic. |
6 | 6 |
|
7 | 7 | --- |
8 | 8 | libavformat/bluray.c | 112 ++++++++++++++++++++++++++++++++++++++++--- |
9 | 9 | 1 file changed, 106 insertions(+), 6 deletions(-) |
10 | 10 |
|
11 | 11 | diff --git a/libavformat/bluray.c b/libavformat/bluray.c |
12 | | -index 635c4f1..a7bcd90 100644 |
| 12 | +index 635c4f1..338aec2 100644 |
13 | 13 | --- a/libavformat/bluray.c |
14 | 14 | +++ b/libavformat/bluray.c |
15 | 15 | @@ -20,12 +20,18 @@ |
@@ -111,7 +111,7 @@ index 635c4f1..a7bcd90 100644 |
111 | 111 | - return bd_seek(bd->bd, pos); |
112 | 112 | - |
113 | 113 | + if (bd->stream_opened) { |
114 | | -+ return (int)bd_file_seek(bd->bd, pos, whence); |
| 114 | ++ return bd_file_seek(bd->bd, pos, whence); |
115 | 115 | + } else { |
116 | 116 | + return bd_seek(bd->bd, pos); |
117 | 117 | + } |
|
0 commit comments