Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
rbouqueau committed Jan 29, 2024
1 parent 56fc2d9 commit e4ba848
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion applications/mp4box/fileimport.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ static GF_Err set_dv_profile(GF_ISOFile *dest, u32 track, char *dv_profile_str)

//get dur and timescale to compute fps
//we don't divide mdur by nb_samples but rather multiple timescale with nb_samples
//this avoid rounding errors with non FPS-aligned input timescale (eg mkv using 1000 regardless of FPS)
//this avoids rounding errors with non FPS-aligned input timescale (eg mkv using 1000 regardless of FPS)
u64 mdur;
u64 timescale = gf_isom_get_media_timescale(dest, track);
mdur = gf_isom_get_media_duration(dest, track);
Expand Down
4 changes: 2 additions & 2 deletions include/gpac/color.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,13 @@ typedef u32 GF_Color;

/*!Parses color from HTML name or hexa representation
\param name name of the color to parse
\return GF_Color value with alpha set to 0xFF if successfull, 0 otherwise
\return GF_Color value with alpha set to 0xFF if successful, 0 otherwise
*/
GF_Color gf_color_parse(const char *name);

/*! Gets color from HTML name or hexa representation
\param col color to identify
\return name of the color if successfull, NULL otherwise
\return name of the color if successful, NULL otherwise
*/
const char *gf_color_get_name(GF_Color col);

Expand Down
2 changes: 1 addition & 1 deletion include/gpac/download.h
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ GF_UserCredentials *gf_user_credentials_find_for_site(GF_DownloadManager *dm, co
\param server_name sever name without protocol scheme - must not be NULL
\param username user name, must not be NULL
\param password user password, must not be NULL
\param valid indicates if credentials are valid (successfull authentication)
\param valid indicates if credentials are valid (successful authentication)
\return credential object or NULL if error
*/
GF_UserCredentials * gf_user_credentials_register(GF_DownloadManager * dm, Bool secure, const char * server_name, const char * username, const char * password, Bool valid);
Expand Down
4 changes: 2 additions & 2 deletions include/gpac/filters.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ typedef enum
/*! Throws an error if any PID in the filter graph cannot be linked. The default behavior is to run the session even when some PIDs are not connected*/
GF_FS_FLAG_FULL_LINK = 1<<10,
/*! Flag set to disable implicit linking
By default the session runs in implicit linking when no link directives are set on any filter: linking aborts after the first successfull pid if destination is not a sink, or links only to sinks otherwise.
By default the session runs in implicit linking when no link directives are set on any filter: linking aborts after the first successful pid if destination is not a sink, or links only to sinks otherwise.
\note This implies that the order in which filters are added to the session matters
*/
GF_FS_FLAG_NO_IMPLICIT = 1<<11
Expand Down Expand Up @@ -2903,7 +2903,7 @@ Properties retrieved shall be released using \ref gf_filter_release_property. Fa
If the propentry pointer references a non-null value, this value will be released using \ref gf_filter_release_property,
so make sure to initialize the pointer to a NULL value on the first call.
This avoid calling \ref gf_filter_release_property after each get_info in the calling code:
This avoids calling \ref gf_filter_release_property after each get_info in the calling code:
\code{.c}
GF_PropertyEntry *pe=NULL;
Expand Down
2 changes: 1 addition & 1 deletion include/gpac/isomedia.h
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ This is mostly used when processing raw audio tracks, for which extracting sampl
\param isom_file the target ISO file
\param trackNumber the target track
\param pack_num_samples the target number of samples to pack in one ISOSample
\return GF_TRUE if packing was successfull, GF_FALSE otherwise (non constant size and non constant duration)
\return GF_TRUE if packing was successful, GF_FALSE otherwise (non constant size and non constant duration)
*/
Bool gf_isom_enable_raw_pack(GF_ISOFile *isom_file, u32 trackNumber, u32 pack_num_samples);

Expand Down
2 changes: 1 addition & 1 deletion include/gpac/thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ Bool gf_sema_notify(GF_Semaphore *sm, u32 nb_rel);
Waits for the semaphore to be accessible (eg, may wait an infinite time).
\param sm the semaphore object
\return GF_TRUE if successfull wait, GF_FALSE if wait failed
\return GF_TRUE if successful wait, GF_FALSE if wait failed
*/
Bool gf_sema_wait(GF_Semaphore *sm);
/*!
Expand Down
2 changes: 1 addition & 1 deletion src/compositor/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ Bool gf_sc_exec_event_vrml(GF_Compositor *compositor, GF_Event *ev)
}

count = gf_list_count(compositor->sensors);
/*if we have a hit node at the compositor level, use "touch" as default cursor - this avoid
/*if we have a hit node at the compositor level, use "touch" as default cursor - this avoids
resetting the cursor when the picked node is a DOM node in a composite texture*/
// stype = (compositor->hit_node!=NULL) ? GF_CURSOR_TOUCH : GF_CURSOR_NORMAL;
stype = GF_CURSOR_NORMAL;
Expand Down
2 changes: 1 addition & 1 deletion src/compositor/media_object.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ void gf_mo_update_caps_ex(GF_MediaObject *mo, Bool check_unchanged)
evt.type = GF_EVENT_QUALITY_SWITCHED;
gf_sc_send_event(scene->compositor, &evt);
} else if (check_unchanged) {
//reset config changed if nothing changed, this avoid resetting up texture or mixer input
//reset config changed if nothing changed, this avoids resetting up texture or mixer input
mo->config_changed = GF_FALSE;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/filters/reframe_amr.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ GF_Err amrdmx_process(GF_Filter *filter)
if (ctx->remaining) break;
amrdmx_update_cts(ctx);

//don't demux too much of input, abort when we would block. This avoid dispatching
//don't demux too much of input, abort when we would block. This avoids dispatching
//a huge number of frames in a single call
if (gf_filter_pid_would_block(ctx->opid)) {
ctx->resume_from = (u32) ( (char *)start - (char *)data);
Expand Down
2 changes: 1 addition & 1 deletion src/filters/reframe_h263.c
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ GF_Err h263dmx_process(GF_Filter *filter)
h263dmx_update_cts(ctx);


//don't demux too much of input, abort when we would block. This avoid dispatching
//don't demux too much of input, abort when we would block. This avoids dispatching
//a huge number of frames in a single call
if (gf_filter_pid_would_block(ctx->opid)) {
ctx->resume_from = (u32) ( (char *)start - (char *)data);
Expand Down
2 changes: 1 addition & 1 deletion src/filters/reframe_nalu.c
Original file line number Diff line number Diff line change
Expand Up @@ -3898,7 +3898,7 @@ GF_Err naludmx_process(GF_Filter *filter)
remain -= nal_size;
naldmx_check_timestamp_switch(ctx, &nalu_store_before, nal_size, &drop_packet, pck);

//don't demux too much of input, abort when we would block. This avoid dispatching
//don't demux too much of input, abort when we would block. This avoids dispatching
//a huge number of frames in a single call
if (remain && gf_filter_pid_would_block(ctx->opid)) {
ctx->resume_from = (u32) (start - ctx->nal_store);
Expand Down
2 changes: 1 addition & 1 deletion src/filters/reframe_qcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ GF_Err qcpdmx_process(GF_Filter *filter)
remain -= size;


//don't demux too much of input, abort when we would block. This avoid dispatching
//don't demux too much of input, abort when we would block. This avoids dispatching
//a huge number of frames in a single call
if (gf_filter_pid_would_block(ctx->opid)) {
ctx->resume_from = (u32) ((char *)start - (char *)data);
Expand Down

0 comments on commit e4ba848

Please sign in to comment.