History

Avoid intermediate bitcount for number of bytes in PutBitContext

Andreas Rheinhardt committed 5 years ago

Commit c81b8e01 parent 73fb1b834 files · +55 −59Browse files

Showing the changes to libavfilter (1 of 34 files). Show all

Unified · Split

libavfilter/vf_signature.c+1−1
@@ -561,7 +561,7 @@ static int binary_export(AVFilterContext *ctx, StreamContext *sc, const char* fi · 560 unmodified lines
561 }561 }
562 562
563 flush_put_bits(&buf);563 flush_put_bits(&buf);
564 fwrite(buffer, 1, put_bits_count(&buf)/8, f);564 fwrite(buffer, 1, put_bytes_output(&buf), f);
565 fclose(f);565 fclose(f);
566 av_freep(&buffer);566 av_freep(&buffer);
567 return 0;567 return 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t