History

avcodec/h264_metadata_bsf: Fix for the incorrect user data with hyphens

How to reproduce: ./ffmpeg -f lavfi -i testsrc -c:v libx264 -g 25 -bsf:v h264_metadata=sei_user_data=186f3693-b7b3-4f2c-9653-21492feee5b8+hello -frames:v 1 h264.mp4 master: [Parsed_showinfo_0 @ 0x7fc8a0703180] UUID=186f3693-7030-4f2c-6030-21492feee5b8 [Parsed_showinfo_0 @ 0x7fc8a0703180] User Data=hello Applied the patch: [Parsed_showinfo_0 @ 0x7f969d408e00] UUID=186f3693-b7b3-4f2c-9653-21492feee5b8 [Parsed_showinfo_0 @ 0x7f969d408e00] User Data=hello

Limin Wang committed 6 years ago

Commit dce2e061 parent 3def3151 file · +1 −1Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/h264_metadata_bsf.c+1−1
@@ -381,7 +381,7 @@ static int h264_metadata_filter(AVBSFContext *bsf, AVPacket *pkt) · 380 unmodified lines
381 } else {381 } else {
382 goto invalid_user_data;382 goto invalid_user_data;
383 }383 }
384 if (i & 1)384 if (j & 1)
385 udu->uuid_iso_iec_11578[j / 2] |= v;385 udu->uuid_iso_iec_11578[j / 2] |= v;
386 else386 else
387 udu->uuid_iso_iec_11578[j / 2] = v << 4;387 udu->uuid_iso_iec_11578[j / 2] = v << 4;

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