"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libavcodec/dvbsubdec.c" between
libav-12.1.tar.gz and libav-12.2.tar.gz

About: libav provides cross-platform tools ("avconv") and libraries to convert, manipulate and stream a wide range of multimedia (audio and video) formats and protocols.

dvbsubdec.c  (libav-12.1):dvbsubdec.c  (libav-12.2)
skipping to change at line 1278 skipping to change at line 1278
sub->start_display_time = 0; sub->start_display_time = 0;
sub->end_display_time = ctx->time_out * 1000; sub->end_display_time = ctx->time_out * 1000;
sub->format = 0; sub->format = 0;
if (display_def) { if (display_def) {
offset_x = display_def->x; offset_x = display_def->x;
offset_y = display_def->y; offset_y = display_def->y;
} }
sub->num_rects = ctx->display_list_size; sub->num_rects = ctx->display_list_size;
if (sub->num_rects <= 0)
return AVERROR_INVALIDDATA;
sub->rects = av_mallocz_array(sub->num_rects * sub->num_rects, if (sub->num_rects > 0) {
sizeof(*sub->rects)); sub->rects = av_mallocz(sizeof(*sub->rects) * sub->num_rects);
if (!sub->rects) if (!sub->rects)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
for (i = 0; i < sub->num_rects; i++) {
sub->rects[i] = av_mallocz(sizeof(*sub->rects[i]));
if (!sub->rects[i]) {
return AVERROR(ENOMEM);
}
}
}
i = 0; i = 0;
for (display = ctx->display_list; display; display = display->next) { for (display = ctx->display_list; display; display = display->next) {
region = get_region(ctx, display->region_id); region = get_region(ctx, display->region_id);
rect = sub->rects[i]; rect = sub->rects[i];
if (!region) if (!region)
continue; continue;
 End of changes. 2 change blocks. 
6 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)