I'm reading ffmpeg code and confused by "AVIOContext *pb". Most of the fields' name is straightforward such as "priv_data" means private data, but I don't know why the "AVIOContext" field named "pb".
Asked
Active
Viewed 328 times
2
-
1That label has been present from the start - my guess is **p**acket **b**uffer since I/O ops are typically buffered. – Gyan Jun 03 '19 at 14:44
-
1thanks @Gyan. packet buffer is good, and I have another guess: **P**ointer to **B**ytestream IO Context – jasonxia Jun 10 '19 at 13:08
1 Answers
-1
Plus what Gyan says, I believe it is also about opaqueness. Check this for more info:What is an opaque pointer in C?

the kamilz
- 1,860
- 1
- 15
- 19
-
Opaque pointers have nothing to do with the name, which is what @jasonxia is asking about. – fumoboy007 Jul 19 '19 at 16:03
-
This is not C question, this is ffmpeg question. I bet you never used libav and thus AVIOContext. When FFmpeg developers choose this kind of names (pb), IT IS about "information hiding". So does my answer. – the kamilz Jul 20 '19 at 22:51