OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a563c6
)
dvbsubdec:dvbsub_display_end_segment() move main loop under if() as its useless if...
author
JULIAN GARDNER
<joolzg@btinternet.com>
Sat, 15 Oct 2011 18:16:31 +0000
(20:16 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 15 Oct 2011 18:16:31 +0000
(20:16 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dvbsubdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/dvbsubdec.c
b/libavcodec/dvbsubdec.c
index
c348aed
..
2a24877
100644
(file)
--- a/
libavcodec/dvbsubdec.c
+++ b/
libavcodec/dvbsubdec.c
@@
-1376,13
+1376,11
@@
static int dvbsub_display_end_segment(AVCodecContext *avctx, const uint8_t *buf,
sub->rects = av_mallocz(sizeof(*sub->rects) * sub->num_rects);
for(i=0; i<sub->num_rects; i++)
sub->rects[i] = av_mallocz(sizeof(*sub->rects[i]));
- }
i = 0;
for (display = ctx->display_list; display; display = display->next) {
region = get_region(ctx, display->region_id);
- rect = sub->rects[i];
if (!region)
continue;
@@
-1427,7
+1425,7
@@
static int dvbsub_display_end_segment(AVCodecContext *avctx, const uint8_t *buf,
}
sub->num_rects = i;
-
+ }
#ifdef DEBUG
save_display_set(ctx);
#endif