Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-28 03:06:26 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-05-28 03:12:18 +0400
commit919c320f7226bf873a9148e1db8994745f9d425d (patch)
tree3f9a850941aa40deccaeeeeab3fc9ac939b8397c /libavformat/oggenc.c
parentb5657516b2b2cc302421b58151e0ab968a3cc737 (diff)
avformat/oggenc: fix EOS flag
This corrects the bug that caused the checksums to change in 9767d7c092c890ecc5953452e8a951fd902dd67b Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/oggenc.c')
-rw-r--r--libavformat/oggenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c
index 9ce3169721..9f75538daa 100644
--- a/libavformat/oggenc.c
+++ b/libavformat/oggenc.c
@@ -406,7 +406,7 @@ static void ogg_write_pages(AVFormatContext *s, int flush)
if (oggstream->page_count < 2 && !flush)
break;
ogg_write_page(s, &p->page,
- flush && oggstream->page_count == 1 ? 4 : 0); // eos
+ flush == 1 && oggstream->page_count == 1 ? 4 : 0); // eos
next = p->next;
av_freep(&p);
p = next;
@@ -550,7 +550,7 @@ static int ogg_write_header(AVFormatContext *s)
oggstream->page.start_granule = AV_NOPTS_VALUE;
- ogg_write_pages(s, 1);
+ ogg_write_pages(s, 2);
return 0;
}