History

lavc: fix mixing CODEC_ID/AV_CODEC_ID in C++ code.

C++ does not allow to mix different enums, so e.g. code comparing ACodecID with CodecID would fail to compile with gcc. This very evil hack should fix this problem.

Anton Khirnov committed 14 years ago

Commit 2ff67c91 parent 33de86d4 files · +14 −8Browse files

Showing the changes to doc/APIchanges (1 of 4 files). Show all

Unified · Split

doc/APIchanges+4−0
@@ -18,6 +18,10 @@ API changes, most recent first: · 17 unmodified lines
18 18
192012-08-xx - xxxxxxx - lavc 54.25 - avcodec.h192012-08-xx - xxxxxxx - lavc 54.25 - avcodec.h
20 Rename CodecID to AVCodecID and all CODEC_ID_* to AV_CODEC_ID_*.20 Rename CodecID to AVCodecID and all CODEC_ID_* to AV_CODEC_ID_*.
21 To provide backwards compatibility, CodecID is now #defined as AVCodecID.
22 Note that this can break user code that includes avcodec.h and uses the
23 'CodecID' identifier. Such code should either #undef CodecID or stop using the
24 CodecID name.
21 25
222012-08-03 - xxxxxxx - lavu 51.37.1 - cpu.h262012-08-03 - xxxxxxx - lavu 51.37.1 - cpu.h
23 lsws 2.1.1 - swscale.h27 lsws 2.1.1 - swscale.h

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