Reimar Döffinger <[email protected]> added the comment:
On Sat, Jan 30, 2010 at 01:00:28PM +0000, Carl Eugen Hoyos wrote:
>
> Carl Eugen Hoyos <[email protected]> added the comment:
>
> Since r20093, no colour-space is detected for this sample's video stream:
The stream is disabled since it looks like we didn't find a header.
However either the code is idiotic or I am too stupid to understand it.
This patch fixes it though:
Index: libavformat/oggdec.c
===================================================================
--- libavformat/oggdec.c (revision 21579)
+++ libavformat/oggdec.c (working copy)
@@ -367,10 +367,10 @@
ogg->curidx = idx;
- if (os->header < 0){
+ if (!ogg->headers){
int hdr = os->codec->header (s, idx);
+ os->header = os->seq;
if (!hdr){
- os->header = os->seq;
os->segp = segp;
os->psize = psize;
ogg->headers = 1;
_____________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue1723>
_____________________________________________________