On date Saturday 2011-05-28 18:19:20 +0200, Anton Khirnov encoded: > On Sat, 28 May 2011 11:42:55 +0200, Stefano Sabatini > <[email protected]> wrote: [...] > > Whatever, that was I called av_parse_video_rate(), but that's not > > important. > > > > If you want to go with framerate: > > char *framerate_string; (or _str) > > AVRational framerate; > > > > could be an option, *or*: > > char *framerate; > > AVRational framerate_q; > > Why? They are in different scopes so there's no conflict anywhere.
Because they are different representations of the same data, that's why using semantically similiar but lexically different names (e.g. framerate for the string, and fps for the rational value) would be confusing for the reader/hacker. > And hungarian notation isn't exactly used in libav. _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
