From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
To: ffmpeg-devel@ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH 3/8] avpriv_find_start_code(): make the state parameter output only
Date: Wed, 2 Feb 2022 04:29:34 +0100
Message-ID: <AM7PR03MB66605FDF9C047D6CB05B3EC38F279@AM7PR03MB6660.eurprd03.prod.outlook.com> (raw)
In-Reply-To: <9ab25051-f150-08cd-86f9-5fcf74802768@gmail.com>
Scott Theisen:
> On 2/1/22 19:15, Andreas Rheinhardt wrote:
>> It seems you didn't get why the code currently is as it is: It allows to
>> use this function with non-contiguous input (as happens in our parsers
>> which operate on data that is not cleanly split into packets yet (it is
>> their job to create proper packets out of the input)). As an example,
>> say you have a buffer that ends with 0x00 00 and the next buffer
>> starting with 0x01 01. Then avpriv_find_start_code() will detect a start
>> code at the beginning of the second buffer if the user passes in the
>> same state again (and does not modify it in the meantime).
>
> Without documentation or comments, in/out parameters are hard to infer
> and most uses were only out.
>
> I might make a context free version for when the buffer is already
> packetized properly.
>
>> You would have noticed this if you had run FATE on your patches (see
>> https://ffmpeg.org/fate.html#Using-FATE-from-your-FFmpeg-source-directory).
>>
>
> Thanks for the link, I didn't see how to run FATE or get the samples for
> it.
>
> Unfortunately, FATE fails before that:
> ```
> CC tests/api/api-threadmessage-test.o
> LD tests/api/api-threadmessage-test
> TEST api-threadmessage
> Test api-threadmessage failed. Look at
> tests/data/fate/api-threadmessage.err for details.
> make: *** [tests/Makefile:257: fate-api-threadmessage] Error 127
> ```
>
> ```
> cat tests/data/fate/api-threadmessage.err
> /home/htpc/build/mythtv-ffmpeg/FFmpeg/tests/api/api-threadmessage-test:
> error while loading shared libraries: libavutil.so.57: cannot open
> shared object file: No such file or directory
> ```
>
> Which is strange because it does exist.
> ```
> ls -l libavutil/libavutil*
> -rw-rw-r-- 1 htpc htpc 4426450 Feb 1 22:06 libavutil/libavutil.a
> -rw-rw-r-- 1 htpc htpc 353 Feb 1 21:06 libavutil/libavutil.pc
> lrwxrwxrwx 1 htpc htpc 15 Feb 1 22:04 libavutil/libavutil.so ->
> libavutil.so.57
> -rwxrwxr-x 1 htpc htpc 2602848 Feb 1 22:04 libavutil/libavutil.so.57
> -rw-rw-r-- 1 htpc htpc 68 Nov 1 22:34 libavutil/libavutil.v
> -rw-rw-r-- 1 htpc htpc 65 Feb 1 22:04 libavutil/libavutil.ver
> -rw-rw-r-- 1 htpc htpc 82 Feb 1 21:05 libavutil/libavutil.version
> ```
>
> I run configure with:
> ./configure --sysinclude=/usr/include --cc='ccache gcc' --cxx='ccache
> g++' --prefix=/usr/local --libdir=/usr/local/lib --enable-vdpau
> --enable-libxml2 --enable-libass --enable-libbluray --enable-vaapi
> --enable-libdrm --enable-gnutls --disable-stripping --disable-manpages
> --disable-podpages --disable-doc --disable-nvenc --enable-shared
> --disable-static --enable-gpl --enable-pic
>
> Any idea why it's failing?
>
libavutil.so.57 (and the other libraries) are probably not in your
library search path. You might e.g. set an rpath.
- Andreas
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2022-02-02 3:29 UTC|newest]
Thread overview: 63+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-01 21:20 [FFmpeg-devel] [PATCH 0/8] rewrite avpriv_find_start_code() for clarity Scott Theisen
2022-02-01 21:20 ` [FFmpeg-devel] [PATCH 1/8] avpriv_find_start_code(): readability enhancement part 1 Scott Theisen
2022-02-01 21:20 ` [FFmpeg-devel] [PATCH 2/8] avpriv_find_start_code(): rewrite while loop and add comments for clarity Scott Theisen
2022-02-01 21:20 ` [FFmpeg-devel] [PATCH 3/8] avpriv_find_start_code(): make the state parameter output only Scott Theisen
2022-02-02 0:15 ` Andreas Rheinhardt
2022-02-02 3:25 ` Scott Theisen
2022-02-02 3:29 ` Andreas Rheinhardt [this message]
2022-02-01 21:20 ` [FFmpeg-devel] [PATCH 4/8] avpriv_find_start_code(): add doxygen comment and rename a parameter Scott Theisen
2022-02-01 21:20 ` [FFmpeg-devel] [PATCH 5/8] avpriv_find_start_code(): replace unnecessary for loop Scott Theisen
2022-02-01 21:20 ` [FFmpeg-devel] [PATCH 6/8] avcodec/internal.h: create avpriv_start_code_is_valid() Scott Theisen
2022-02-01 21:20 ` [FFmpeg-devel] [PATCH 7/8] cbs_mpeg2.c: use a while loop with a loop condition instead of an infinite loop Scott Theisen
2022-02-01 21:20 ` [FFmpeg-devel] [PATCH 8/8] avpriv_find_start_code(): reduce the number of iterations Scott Theisen
2022-02-03 18:44 ` [FFmpeg-devel] [PATCH v2 0/13] rewrite avpriv_find_start_code() for clarity Scott Theisen
2022-02-03 18:44 ` [FFmpeg-devel] [PATCH v2 01/13] avcodec/internal.h: create avpriv_start_code_is_valid() Scott Theisen
2022-02-05 5:42 ` Andreas Rheinhardt
2022-02-05 5:57 ` Scott Theisen
2022-02-03 18:44 ` [FFmpeg-devel] [PATCH v2 02/13] avpriv_find_start_code(): readability enhancement part 1 Scott Theisen
2022-02-05 6:26 ` Andreas Rheinhardt
2022-02-03 18:44 ` [FFmpeg-devel] [PATCH v2 03/13] avpriv_find_start_code(): rewrite while loop and add comments for clarity Scott Theisen
2022-02-03 18:44 ` [FFmpeg-devel] [PATCH v2 04/13] avpriv_find_start_code(): rewrite for loop " Scott Theisen
2022-02-03 18:44 ` [FFmpeg-devel] [PATCH v2 05/13] avpriv_find_start_code(): add doxygen comment and rename a parameter Scott Theisen
2022-02-03 18:44 ` [FFmpeg-devel] [PATCH v2 06/13] avpriv_find_start_code(): correct type of start_code parameter Scott Theisen
2022-02-03 18:44 ` [FFmpeg-devel] [PATCH v2 07/13] avpriv_find_start_code(): constify pointer parameters Scott Theisen
2022-02-05 5:49 ` Andreas Rheinhardt
2022-02-05 6:08 ` Scott Theisen
2022-02-03 18:44 ` [FFmpeg-devel] [PATCH v2 08/13] avpriv_find_start_code(): add parameter for ignoring history Scott Theisen
2022-02-05 6:10 ` Andreas Rheinhardt
2022-02-05 9:00 ` Scott Theisen
2022-02-03 18:44 ` [FFmpeg-devel] [PATCH v2 09/13] avpriv_find_start_code(): fix indent from previous commit Scott Theisen
2022-02-03 18:44 ` [FFmpeg-devel] [PATCH v2 10/13] cbs_mpeg2.c: use a while loop with a loop condition instead of an infinite loop Scott Theisen
2022-02-05 1:48 ` Andreas Rheinhardt
2022-02-05 3:47 ` Scott Theisen
2022-02-05 4:06 ` Andreas Rheinhardt
2022-02-05 4:09 ` Scott Theisen
2022-02-03 18:44 ` [FFmpeg-devel] [PATCH v2 11/13] cbs_mpeg2.c: improve readability of start code search (part 1) Scott Theisen
2022-02-05 2:16 ` Andreas Rheinhardt
2022-02-05 3:53 ` Scott Theisen
2022-02-03 18:44 ` [FFmpeg-devel] [PATCH v2 12/13] cbs_mpeg2.c: improve readability of start code search (part 2) Scott Theisen
2022-02-05 2:24 ` Andreas Rheinhardt
2022-02-05 3:59 ` Scott Theisen
2022-02-03 18:44 ` [FFmpeg-devel] [PATCH v2 13/13] cbs_mpeg2.c: improve readability of start code search (part 3) Scott Theisen
2022-02-05 3:54 ` Andreas Rheinhardt
2022-02-05 4:26 ` Scott Theisen
2022-02-09 3:28 ` [FFmpeg-devel] [PATCH v3 0/8] rewrite avpriv_find_start_code() for clarity Scott Theisen
2022-02-09 3:28 ` [FFmpeg-devel] [PATCH v3 1/8] avcodec/startcode.h: create start_code_is_valid() Scott Theisen
2022-02-09 3:28 ` [FFmpeg-devel] [PATCH v3 2/8] avpriv_find_start_code(): readability enhancement part 1 Scott Theisen
2022-02-09 3:28 ` [FFmpeg-devel] [PATCH v3 3/8] avpriv_find_start_code(): rewrite while loop Scott Theisen
2022-02-09 3:28 ` [FFmpeg-devel] [PATCH v3 4/8] avpriv_find_start_code(): rewrite for loop for clarity Scott Theisen
2022-02-09 3:28 ` [FFmpeg-devel] [PATCH v3 5/8] avpriv_find_start_code(): add doxygen comment and rename a parameter Scott Theisen
2022-02-09 3:28 ` [FFmpeg-devel] [PATCH v3 6/8] avpriv_find_start_code(): correct type of start_code parameter Scott Theisen
2022-02-09 3:28 ` [FFmpeg-devel] [PATCH v3 7/8] avpriv_find_start_code(): constify pointer parameters Scott Theisen
2022-02-09 3:28 ` [FFmpeg-devel] [PATCH v3 8/8] avpriv_find_start_code(): make start_code output only Scott Theisen
2022-03-07 18:44 ` [FFmpeg-devel] [PATCH v3 0/8] rewrite avpriv_find_start_code() for clarity Scott Theisen
2022-09-16 18:19 ` [FFmpeg-devel] [PATCH v4 " Scott Theisen
2022-09-16 18:19 ` [FFmpeg-devel] [PATCH v4 1/8] avcodec/startcode.h: create start_code_is_valid() Scott Theisen
2022-09-16 18:19 ` [FFmpeg-devel] [PATCH v4 2/8] avpriv_find_start_code(): readability enhancement part 1 Scott Theisen
2022-09-16 18:19 ` [FFmpeg-devel] [PATCH v4 3/8] avpriv_find_start_code(): rewrite while loop Scott Theisen
2022-09-16 18:19 ` [FFmpeg-devel] [PATCH v4 4/8] avpriv_find_start_code(): rewrite for loop for clarity Scott Theisen
2022-09-16 18:19 ` [FFmpeg-devel] [PATCH v4 5/8] avpriv_find_start_code(): add doxygen comment and rename a parameter Scott Theisen
2022-09-16 18:20 ` [FFmpeg-devel] [PATCH v4 6/8] avpriv_find_start_code(): correct type of start_code parameter Scott Theisen
2022-09-16 18:20 ` [FFmpeg-devel] [PATCH v4 7/8] avpriv_find_start_code(): constify pointer parameters Scott Theisen
2022-09-16 18:20 ` [FFmpeg-devel] [PATCH v4 8/8] avpriv_find_start_code(): make start_code output only Scott Theisen
2022-09-16 18:26 ` [FFmpeg-devel] [PATCH v4 0/8] rewrite avpriv_find_start_code() for clarity Scott Theisen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AM7PR03MB66605FDF9C047D6CB05B3EC38F279@AM7PR03MB6660.eurprd03.prod.outlook.com \
--to=andreas.rheinhardt@outlook.com \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git